Commit 1f1027a
committed
fabrics: refactor error propagation in nvmf_connect
With the introduction of nvme_add_ctrl we can use the return code
directly and don't rely on the errno being set.
Also we can directly leave the function on error because we don't have
to cleanup things explicitly anymore.
Signed-off-by: Daniel Wagner <[email protected]>1 parent 419180e commit 1f1027a
1 file changed
Lines changed: 18 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | | - | |
212 | 216 | | |
213 | | - | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
1082 | 1085 | | |
1083 | 1086 | | |
1084 | 1087 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1088 | + | |
| 1089 | + | |
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
| |||
1106 | 1107 | | |
1107 | 1108 | | |
1108 | 1109 | | |
1109 | | - | |
1110 | | - | |
| 1110 | + | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
| 1115 | + | |
| 1116 | + | |
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
1122 | 1120 | | |
1123 | 1121 | | |
1124 | 1122 | | |
1125 | | - | |
1126 | 1123 | | |
1127 | | - | |
| 1124 | + | |
1128 | 1125 | | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
| 1126 | + | |
| 1127 | + | |
1134 | 1128 | | |
1135 | 1129 | | |
1136 | | - | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1137 | 1133 | | |
1138 | 1134 | | |
1139 | | - | |
| 1135 | + | |
| 1136 | + | |
1140 | 1137 | | |
1141 | 1138 | | |
1142 | 1139 | | |
| |||
0 commit comments