Re: [PATCH net-next] net: bgmac: remove set but not used variable 'err'

From: David Miller
Date: Sun Sep 02 2018 - 01:31:17 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Sat, 1 Sep 2018 03:13:10 +0000

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/broadcom/bgmac.c: In function 'bgmac_dma_alloc':
> drivers/net/ethernet/broadcom/bgmac.c:619:6: warning:
> variable 'err' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.