]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: vxge: remove redundant assignments and pointers
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Nov 2017 15:47:24 +0000 (15:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Nov 2017 06:31:13 +0000 (15:31 +0900)
commite4effc094c91706c5737530ef9ae6298e1d67512
tree61a4e3337ef7cf30652b4890b46b0f62521f144a
parentbe61a484af474c1f9c7a25a71a7065efe20984b8
net: vxge: remove redundant assignments and pointers

There are several pointers that are being assigned but never read
so remove these as they are redundant.  Also remove an assignment
to function_mode that is never read. Cleans up several clang
warnings:

vxge-main.c:1139:2: warning: Value stored to 'hldev' is never read
vxge-main.c:1294:2: warning: Value stored to 'hldev' is never read
vxge-main.c:2188:2: warning: Value stored to 'dev' is never read
vxge-main.c:2188:2: warning: Value stored to 'dev' is never read
vxge-main.c:2723:2: warning: Value stored to 'function_mode' is
never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/vxge/vxge-main.c