]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitcf62cb72d63944f4dcc7376efd84959afc9366cb
tree34872c22d8e9e3ea6f266333e59fc1add8c0ee63
parent3a4e0d6a95b2b6f7b22eb7c7361a0fc4289478eb
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