[Intel-wired-lan] [PATCH] igb: remove never changed variable `ret_val'
G, GurucharanX
gurucharanx.g at intel.com
Wed Nov 24 13:01:59 UTC 2021
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jason Wang
> Sent: Sunday, November 14, 2021 11:32 AM
> To: kuba at kernel.org
> Cc: netdev at vger.kernel.org; linux-kernel at vger.kernel.org; Jason Wang
> <wangborong at cdjrlc.com>; intel-wired-lan at lists.osuosl.org;
> davem at davemloft.net
> Subject: [Intel-wired-lan] [PATCH] igb: remove never changed variable `ret_val'
>
> The variable used for return status in `igb_write_xmdio_reg' function is never
> changed and this function is just need return 0. Thus, the `ret_val' can be
> removed and return 0 at the end of the `igb_write_xmdio_reg' function.
>
> Signed-off-by: Jason Wang <wangborong at cdjrlc.com>
> ---
> drivers/net/ethernet/intel/igb/e1000_i210.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list