diff options
author | Cesar Eduardo Barros <cesarb@cesarb.net> | 2011-03-26 06:10:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-28 08:35:05 +0200 |
commit | 3e49e6d520401e1d25ec8d366520aad2c01adc1c (patch) | |
tree | 60dac2bdbce6b61524ac1f12468841470607c5ad /drivers/net/ksz884x.c | |
parent | Net / jme: Do not use legacy PCI power management (diff) | |
download | linux-3e49e6d520401e1d25ec8d366520aad2c01adc1c.tar.xz linux-3e49e6d520401e1d25ec8d366520aad2c01adc1c.zip |
net: use CHECKSUM_NONE instead of magic number
Two places in the kernel were doing skb->ip_summed = 0.
Change both to skb->ip_summed = CHECKSUM_NONE, which is more readable.
Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ksz884x.c')
-rw-r--r-- | drivers/net/ksz884x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c index 540a8dcbcc46..7f7d5708a658 100644 --- a/drivers/net/ksz884x.c +++ b/drivers/net/ksz884x.c @@ -4898,7 +4898,7 @@ static netdev_tx_t netdev_tx(struct sk_buff *skb, struct net_device *dev) goto unlock; } skb_copy_and_csum_dev(org_skb, skb->data); - org_skb->ip_summed = 0; + org_skb->ip_summed = CHECKSUM_NONE; skb->len = org_skb->len; copy_old_skb(org_skb, skb); } |