diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2010-10-30 19:19:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-30 19:19:45 -0400 |
commit | 1b803fbfcd1c35857fe52844158213507a8a5bfa (patch) | |
tree | 4c9b134deb468fcb755b3ce21ecd48830b74e214 /drivers/net/vmxnet3 | |
parent | b8744cabb79a6522bb2e1c22c4edd8fb39fcfc7e (diff) |
vmxnet: trivial annotation of protocol constant
Noticed by sparse:
drivers/net/vmxnet3/vmxnet3_drv.c:876:38: warning: cast from restricted __be16
drivers/net/vmxnet3/vmxnet3_drv.c:876:38: warning: cast from restricted __be16
drivers/net/vmxnet3/vmxnet3_drv.c:876:24: warning: restricted __be16 degrades to integer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index e3658e10db39..21314e06e6d7 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c | |||
@@ -873,7 +873,7 @@ vmxnet3_tq_xmit(struct sk_buff *skb, struct vmxnet3_tx_queue *tq, | |||
873 | count = VMXNET3_TXD_NEEDED(skb_headlen(skb)) + | 873 | count = VMXNET3_TXD_NEEDED(skb_headlen(skb)) + |
874 | skb_shinfo(skb)->nr_frags + 1; | 874 | skb_shinfo(skb)->nr_frags + 1; |
875 | 875 | ||
876 | ctx.ipv4 = (skb->protocol == __constant_ntohs(ETH_P_IP)); | 876 | ctx.ipv4 = (skb->protocol == cpu_to_be16(ETH_P_IP)); |
877 | 877 | ||
878 | ctx.mss = skb_shinfo(skb)->gso_size; | 878 | ctx.mss = skb_shinfo(skb)->gso_size; |
879 | if (ctx.mss) { | 879 | if (ctx.mss) { |