diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2011-03-28 13:08:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-31 00:39:23 -0400 |
commit | 4562b2fe1ebc7c547746660f735ff9af964f28ad (patch) | |
tree | 1f1ab3095fb680efd5bad38fb9c726ccfe720c2e /drivers/net/via-rhine.c | |
parent | 19eccc2bc6ad3b1c81d0826a77955500be972504 (diff) |
via-rhine: trivial sparse annotation in vlan_tci helper
Noticed by sparse:
drivers/net/via-rhine.c:1706:16: warning: cast to restricted __be16
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/via-rhine.c')
-rw-r--r-- | drivers/net/via-rhine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 5e7f069eab53..707f7f8beb6f 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -1703,7 +1703,7 @@ static void rhine_tx(struct net_device *dev) | |||
1703 | static inline u16 rhine_get_vlan_tci(struct sk_buff *skb, int data_size) | 1703 | static inline u16 rhine_get_vlan_tci(struct sk_buff *skb, int data_size) |
1704 | { | 1704 | { |
1705 | u8 *trailer = (u8 *)skb->data + ((data_size + 3) & ~3) + 2; | 1705 | u8 *trailer = (u8 *)skb->data + ((data_size + 3) & ~3) + 2; |
1706 | return ntohs(*(u16 *)trailer); | 1706 | return be16_to_cpup((__be16 *)trailer); |
1707 | } | 1707 | } |
1708 | 1708 | ||
1709 | /* Process up to limit frames from receive ring */ | 1709 | /* Process up to limit frames from receive ring */ |