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

From: Vadim Fedorenko
Date: Sat Feb 18 2023 - 11:13:28 EST


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.