Thread (4 messages) flat view 4 messages, 4 authors, 2023-02-21

Re: [PATCH v2] bnx2: remove deadcode in bnx2_init_cpus()

From: Paolo Abeni <pabeni@redhat.com>
Date: 2023-02-21 09:39:50
Also in: lkml

On Sun, 2023-02-19 at 18:22 +0300, Maxim Korotkov wrote:
The load_cpu_fw function has no error return code
and always returns zero. Checking the value returned by
this function does not make sense.
As a result, bnx2_init_cpus() will also return only zero
Therefore, it will be safe to change the type of functions
to void and remove checking

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

Fixes: 57579f7629a3 ("bnx2: Use request_firmware()")
Signed-off-by: Maxim Korotkov <redacted>
I agree with Vadim, this looks like net-next material.

The net-next tree is currently closed. Please re-post when net-next re-
opens, in ~2 weeks, with the Fixes tag stripped.

Thanks!

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