projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19eccc2
)
via-rhine: trivial sparse annotation in vlan_tci helper
author
Harvey Harrison
<harvey.harrison@gmail.com>
Mon, 28 Mar 2011 17:08:59 +0000
(17:08 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 31 Mar 2011 04:39:23 +0000
(21:39 -0700)
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>
drivers/net/via-rhine.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/via-rhine.c
b/drivers/net/via-rhine.c
index 5e7f069eab533e75cf950294648a7967da104bb0..707f7f8beb6fc92e7851332a726325b7e920f57a 100644
(file)
--- a/
drivers/net/via-rhine.c
+++ b/
drivers/net/via-rhine.c
@@
-1703,7
+1703,7
@@
static void rhine_tx(struct net_device *dev)
static inline u16 rhine_get_vlan_tci(struct sk_buff *skb, int data_size)
{
u8 *trailer = (u8 *)skb->data + ((data_size + 3) & ~3) + 2;
- return
ntohs(*(u
16 *)trailer);
+ return
be16_to_cpup((__be
16 *)trailer);
}
/* Process up to limit frames from receive ring */