Commit d72b735
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 c866b7e ("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>1 parent 57a03d8 commit d72b735
1 file changed
+4
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4019 | 4019 | | |
4020 | 4020 | | |
4021 | 4021 | | |
4022 | | - | |
| 4022 | + | |
4023 | 4023 | | |
4024 | 4024 | | |
4025 | 4025 | | |
| |||
4263 | 4263 | | |
4264 | 4264 | | |
4265 | 4265 | | |
4266 | | - | |
| 4266 | + | |
4267 | 4267 | | |
4268 | 4268 | | |
4269 | 4269 | | |
| |||
18084 | 18084 | | |
18085 | 18085 | | |
18086 | 18086 | | |
18087 | | - | |
18088 | 18087 | | |
18089 | 18088 | | |
18090 | 18089 | | |
| |||
18108 | 18107 | | |
18109 | 18108 | | |
18110 | 18109 | | |
18111 | | - | |
18112 | | - | |
18113 | | - | |
18114 | | - | |
18115 | | - | |
18116 | | - | |
18117 | | - | |
18118 | | - | |
18119 | | - | |
18120 | | - | |
18121 | | - | |
18122 | | - | |
18123 | | - | |
18124 | | - | |
18125 | | - | |
18126 | | - | |
18127 | | - | |
18128 | | - | |
18129 | | - | |
18130 | | - | |
18131 | | - | |
18132 | | - | |
| 18110 | + | |
18133 | 18111 | | |
18134 | 18112 | | |
18135 | 18113 | | |
18136 | | - | |
| 18114 | + | |
18137 | 18115 | | |
18138 | 18116 | | |
18139 | 18117 | | |
| |||
0 commit comments