Thread (12 messages) flat view 12 messages, 4 authors, 2024-03-29

Re: [PATCH] tg3: Remove residual error handling in tg3_suspend

From: Michael Chan <michael.chan@broadcom.com>
Date: 2024-03-07 22:38:16
Also in: lkml

On Thu, Mar 7, 2024 at 11:23 AM Nikita Kiryushin [off-list ref] wrote:

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.

Remove (now unreachable) code for simplification.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: c866b7eac073 ("tg3: Do not use legacy PCI power management")
Signed-off-by: Nikita Kiryushin <redacted>
The patch looks good to me.  But I think we can go one step further
and change tg3_power_down_prepare() to a void function.  Thanks.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help