]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Fix unused variable warning by using variable
authorAndrew Lunn <andrew@lunn.ch>
Mon, 21 Nov 2016 22:26:56 +0000 (23:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 14:55:30 +0000 (09:55 -0500)
commit69b4b750c560a52afd8b93c6eb17be70c941f704
tree8cad42b7308ac35b94bab8ea257f1e9e86ff6c29
parente40427710c42981498163898a99c8f86a1d811e8
net: dsa: mv88e6xxx: Fix unused variable warning by using variable

_mv88e6xxx_stats_wait() did not check the return value from
 mv88e6xxx_g1_read(), so the compiler complained about set but unused
 err.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c