[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200717.184359.1727120553942218221.davem@davemloft.net>
Date: Fri, 17 Jul 2020 18:43:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: zhangchangzhong@...wei.com
Cc: mark.einon@...il.com, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: ethernet: et131x: Remove unused variable
'pm_csr'
From: Zhang Changzhong <zhangchangzhong@...wei.com>
Date: Fri, 17 Jul 2020 18:33:30 +0800
> Gcc report warning as follows:
>
> drivers/net/ethernet/agere/et131x.c:953:6: warning:
> variable 'pm_csr' set but not used [-Wunused-but-set-variable]
> 953 | u32 pm_csr;
> | ^~~~~~
> drivers/net/ethernet/agere/et131x.c:1002:6:warning:
> variable 'pm_csr' set but not used [-Wunused-but-set-variable]
> 1002 | u32 pm_csr;
> | ^~~~~~
> drivers/net/ethernet/agere/et131x.c:3446:8: warning:
> variable 'pm_csr' set but not used [-Wunused-but-set-variable]
> 3446 | u32 pm_csr;
> | ^~~~~~
>
> After commit 38df6492eb51 ("et131x: Add PCIe gigabit ethernet driver
> et131x to drivers/net"), 'pm_csr' is never used in these functions,
> so removing it to avoid build warning.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Zhang Changzhong <zhangchangzhong@...wei.com>
Applied.
Powered by blists - more mailing lists