enetc: remove variable 'tc_max_sized_frame' set but not used
authorChen Wandun <chenwandun@huawei.com>
Tue, 10 Dec 2019 10:24:50 +0000 (18:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2019 01:47:23 +0000 (17:47 -0800)
commit6525b5ef65fdaf8a782449fb5d585195b573c2c1
treed5639bf918c7f631e53641f2b8669b9f831f42ba
parentca866ee825911cb70e64ad5b33ac73d4ab924c1f
enetc: remove variable 'tc_max_sized_frame' set but not used

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@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_qos.c