Re: [PATCH] enetc: remove variable 'tc_max_sized_frame' set but not used

From: David Miller
Date: Tue Dec 10 2019 - 20:47:45 EST


From: Chen Wandun <chenwandun@xxxxxxxxxx>
Date: Tue, 10 Dec 2019 18:24:50 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/freescale/enetc/enetc_qos.c: In function enetc_setup_tc_cbs:
> drivers/net/ethernet/freescale/enetc/enetc_qos.c:195:6: warning: variable tc_max_sized_frame set but not used [-Wunused-but-set-variable]
>
> Fixes: c431047c4efe ("enetc: add support Credit Based Shaper(CBS) for hardware offload")
> Signed-off-by: Chen Wandun <chenwandun@xxxxxxxxxx>

Applied to net-next.