net: pasemi: remove set but not used variable 'cpyhdr'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 3 Apr 2019 07:50:27 +0000 (15:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:36:23 +0000 (17:36 -0700)
commit1789b8aabefb3e87456a4c63fe547bb330b16fe0
treec6d8350fa69e43e1da8cf713f3220dff7acf25ae
parentc8f191282f819ab4e9b47b22a65c6c29734cefce
net: pasemi: remove set but not used variable 'cpyhdr'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/pasemi/pasemi_mac.c: In function 'pasemi_mac_queue_csdesc':
drivers/net/ethernet/pasemi/pasemi_mac.c:1358:29: warning: variable 'cpyhdr' set but not used [-Wunused-but-set-variable]

It's never used since commit 8d636d8bc5ff ("pasemi_mac: jumbo
frame support") and can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pasemi/pasemi_mac.c