Commit d4a8933
ata: pata_legacy: make legacy_exit() work again
Commit defc9cd ("pata_legacy: resychronize with upstream changes and
resubmit") missed to update legacy_exit(), so that it now fails to do any
cleanup -- the loop body there can never be entered. Fix that and finally
remove now useless nr_legacy_host variable...
Found by Linux Verification Center (linuxtesting.org) with the Svace static
analysis tool.
Fixes: defc9cd ("pata_legacy: resychronize with upstream changes and resubmit")
Cc: [email protected]
Signed-off-by: Sergey Shtylyov <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>1 parent 9e6938e commit d4a8933
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
| |||
1276 | 1274 | | |
1277 | 1275 | | |
1278 | 1276 | | |
1279 | | - | |
| 1277 | + | |
1280 | 1278 | | |
1281 | | - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| |||
0 commit comments