summaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorAl Viro2006-11-15 05:48:11 +0100
committerDavid S. Miller2006-12-03 06:22:49 +0100
commit252e33467a3b016f20dd8df12269cef3b167f21e (patch)
treed8ea541988b3352dd832df8a9e6ab5ca195e3528 /net/core/dev.c
parent[IRDA]: Trivial annotations. (diff)
downloadkernel-qcow2-linux-252e33467a3b016f20dd8df12269cef3b167f21e.tar.gz
kernel-qcow2-linux-252e33467a3b016f20dd8df12269cef3b167f21e.tar.xz
kernel-qcow2-linux-252e33467a3b016f20dd8df12269cef3b167f21e.zip
[NET] net/core: Annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 5bf13b132dd7..a7be106d0fdb 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1215,7 +1215,7 @@ struct sk_buff *skb_gso_segment(struct sk_buff *skb, int features)
{
struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT);
struct packet_type *ptype;
- int type = skb->protocol;
+ __be16 type = skb->protocol;
int err;
BUG_ON(skb_shinfo(skb)->frag_list);
@@ -1766,7 +1766,7 @@ int netif_receive_skb(struct sk_buff *skb)
struct packet_type *ptype, *pt_prev;
struct net_device *orig_dev;
int ret = NET_RX_DROP;
- unsigned short type;
+ __be16 type;
/* if we've gotten here through NAPI, check netpoll */
if (skb->dev->poll && netpoll_rx(skb))