Re: [PATCH net-next] qlcnic: remove set but not used variables 'op, cmd_op'

From: David Miller
Date: Tue Dec 18 2018 - 18:50:55 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Mon, 17 Dec 2018 17:27:16 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c:1070:5: warning:
> variable 'op' set but not used [-Wunused-but-set-variable]
> drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c:1342:5: warning:
> variable 'cmd_op' set but not used [-Wunused-but-set-variable]
>
> 'op' never used since introduction in commit 7cb03b2347d5 ("qlcnic:
> Support VF-PF communication channel commands.")
> 'cmd_op' not used since commit 6226204bcf20 ("qlcnic: Fix operation
> type and command type.")
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.