tg3: Remove residual error handling in tg3_suspend
authorNikita Kiryushin <kiryushin@ancud.ru>
Mon, 1 Apr 2024 19:14:18 +0000 (22:14 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 4 Apr 2024 08:49:42 +0000 (10:49 +0200)
commitd72b735712e65cccb85f81e6b26a14ea53cc6438
treeee0fc3fcfa0667e9bd25fccdc0c1a0860cb08e7f
parent57a03d83f229126b0aab6f305821358755c7b130
tg3: Remove residual error handling in tg3_suspend

As of now, tg3_power_down_prepare always ends with success, but
the error handling code from former tg3_set_power_state call is still here.

This code became unreachable in commit c866b7eac073 ("tg3: Do not use
legacy PCI power management").

Remove (now unreachable) error handling code for simplification and change
tg3_power_down_prepare to a void function as its result is no more checked.

Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240401191418.361747-1-kiryushin@ancud.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/tg3.c