Re: [PATCH net-next] octeontx2-af: Remove set but not used variables 'devnum, is_pf'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Fri, 19 Oct 2018 13:03:06 +0000

> Fixes gcc '-Wunused-but-set-variable' warning:
> 
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c: In function 'rvu_detach_rsrcs':
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:855:6: warning:
>  variable 'devnum' set but not used [-Wunused-but-set-variable]
>  
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:853:7: warning:
>  variable 'is_pf' set but not used [-Wunused-but-set-variable]
> 
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c: In function 'rvu_mbox_handler_ATTACH_RESOURCES':
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:1054:7: warning:
>  variable 'is_pf' set but not used [-Wunused-but-set-variable]
> 
> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:1053:6: warning:
>  variable 'devnum' set but not used [-Wunused-but-set-variable]
> 
> It never used since introduction in commit
> 746ea74241fa ("octeontx2-af: Add RVU block LF provisioning support")
> 
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux