[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200918.143013.184259371965563025.davem@davemloft.net>
Date: Fri, 18 Sep 2020 14:30:13 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: zhengyongjun3@...wei.com
Cc: fmanlunas@...vell.com, sburla@...vell.com, dchickles@...vell.com,
kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: ethernet: Remove set but not used
variable
From: Zheng Yongjun <zhengyongjun3@...wei.com>
Date: Fri, 18 Sep 2020 16:39:38 +0800
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function lio_pci_readq:
> drivers/net/ethernet/cavium/liquidio/octeon_device.c:1327:6: warning: variable ‘val32’ set but not used [-Wunused-but-set-variable]
>
> drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function lio_pci_writeq:
> drivers/net/ethernet/cavium/liquidio/octeon_device.c:1358:6: warning: variable ‘val32’ set but not used [-Wunused-but-set-variable]
>
> these variable is never used, so remove it.
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
The proper subsystem prefix for these changes is just "liquidio: ".
For changes to a specific driver it is not appropriate to use
"net: ethernet: " or similar.
Please fix up your Subject line and resubmit.
Thank you.
Powered by blists - more mailing lists