]> git.baikalelectronics.ru Git - kernel.git/commit
net: calxedaxgmac: fix condition in xgmac_set_features()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Apr 2013 07:44:20 +0000 (10:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 07:50:17 +0000 (03:50 -0400)
commitd54fc11415f07b62a285a1e6f9ffb2df20caffde
tree34872c22d8e9e3ea6f266333e59fc1add8c0ee63
parent7902a391683eabe46bdc75d0b182484702c5b9b1
net: calxedaxgmac: fix condition in xgmac_set_features()

The "changed" variable should be a 64 bit type, otherwise it can't store
all the features.  The way the code is now the test for whether
NETIF_F_RXCSUM changed is always false and we return immediately.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c