Re: [PATCH net-next] net: encx24j600: make encx24j600_hw_init() return void

From: David Miller
Date: Thu May 07 2020 - 16:04:56 EST


From: Jason Yan <yanaijie@xxxxxxxxxx>
Date: Thu, 7 May 2020 19:09:05 +0800

> This function always return 0 now, we can make it return void to
> simplify the code. This fixes the following coccicheck warning:
>
> drivers/net/ethernet/microchip/encx24j600.c:609:5-8: Unneeded variable:
> "ret". Return "0" on line 653
>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Applied.