aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-06-11 20:23:24 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-11 20:23:24 -0400
commit17d0cdfa8f3c09a110061c67421d662b3e149d0a (patch)
tree5e707b8787db0a8571b983a6c8c1d7bf88579788 /drivers/net/atlx
parent3ee40c376ad3252d13946141588db7e2f435f958 (diff)
net: ntohs() misuse
Some drivers incorrectly use ntohs() instead of htons() A cleanup as htons() returns same result than ntohs(), but better to use the proper one. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r--drivers/net/atlx/atl1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 560f3873d347..94d7325caf4f 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -2382,7 +2382,7 @@ static int atl1_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
2382 2382
2383 mss = skb_shinfo(skb)->gso_size; 2383 mss = skb_shinfo(skb)->gso_size;
2384 if (mss) { 2384 if (mss) {
2385 if (skb->protocol == ntohs(ETH_P_IP)) { 2385 if (skb->protocol == htons(ETH_P_IP)) {
2386 proto_hdr_len = (skb_transport_offset(skb) + 2386 proto_hdr_len = (skb_transport_offset(skb) +
2387 tcp_hdrlen(skb)); 2387 tcp_hdrlen(skb));
2388 if (unlikely(proto_hdr_len > len)) { 2388 if (unlikely(proto_hdr_len > len)) {