diff options
author | Nikita Kiryushin <kiryushin@ancud.ru> | 2024-04-01 22:14:18 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-04-04 11:16:50 +0300 |
commit | 9ab4ad295622a3481818856762471c1f8c830e18 (patch) | |
tree | 42b62b0c227c81a9ce5860bb92a9f6c7a7f468a3 /drivers/net/gtp.c | |
parent | c0de6ab920aafb56feab56058e46b688e694a246 (diff) | |
download | linux-9ab4ad295622a3481818856762471c1f8c830e18.tar.xz |
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>
Diffstat (limited to 'drivers/net/gtp.c')
0 files changed, 0 insertions, 0 deletions