Messages in this thread | | | Date | Mon, 14 Sep 2020 13:42:26 -0700 (PDT) | Subject | Re: [PATCH net-next] net: dnet: remove unused variable 'tx_status 'in dnet_start_xmit() | From | David Miller <> |
| |
From: Zhang Changzhong <zhangchangzhong@huawei.com> Date: Mon, 14 Sep 2020 21:08:37 +0800
> Fixes the following W=1 kernel build warning(s): > > drivers/net/ethernet/dnet.c:510:6: warning: > variable 'tx_status' set but not used [-Wunused-but-set-variable] > u32 tx_status, irq_enable; > ^~~~~~~~~ > > After commit 4796417417a6 ("dnet: Dave DNET ethernet controller driver > (updated)"), variable 'tx_status' is never used in dnet_start_xmit(), > so removing it to avoid build warning. > > Reported-by: Hulk Robot <hulkci@huawei.com> > Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Applied.
| |