[lvc-project] [PATCH] bnx2: remove deadcode in bnx2_init_cpus()

Vadim Fedorenko vadim.fedorenko at linux.dev
Sat Feb 18 19:13:19 MSK 2023


On 18.02.2023 13:00, 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
> 
In this case it's safe to convert both load_cpu_fw and bnx2_init_cpus to void 
and remove the check in bnx2_init_chip. This will reduce the code a bit.





More information about the lvc-project mailing list