Sergey Shtylyov d4a89339f1 ata: pata_legacy: make legacy_exit() work again
Commit defc9cd826e4 ("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: defc9cd826e4 ("pata_legacy: resychronize with upstream changes and resubmit")
Cc: stable@vger.kernel.org
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
2024-05-07 07:23:31 +09:00
..
2023-08-02 17:37:06 +09:00
2024-02-13 11:31:14 +01:00
2024-04-08 10:07:28 +09:00
2024-04-08 10:07:28 +09:00
2023-02-22 13:35:51 -08:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:06 +09:00