Re: [PATCH net-next] qed: Remove set but not used variable 'p_link'
From: David Miller
Date: Tue Feb 04 2020 - 03:33:59 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 4 Feb 2020 02:24:41 +0000
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/qlogic/qed/qed_cxt.c: In function 'qed_qm_init_pf':
> drivers/net/ethernet/qlogic/qed/qed_cxt.c:1401:29: warning:
> variable 'p_link' set but not used [-Wunused-but-set-variable]
>
> commit 92fae6fb231f ("qed: FW 8.42.2.0 Queue Manager changes")
> leave behind this unused variable.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Applied, thank you.