mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[NET]: __be'ify *_type_trans()
tr_type_trans(), hippi_type_trans() left as-is. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
84531c24f2
commit
ab611487d8
16 changed files with 20 additions and 27 deletions
|
|
@ -358,10 +358,10 @@ int wanrouter_encapsulate(struct sk_buff *skb, struct net_device *dev,
|
|||
*/
|
||||
|
||||
|
||||
unsigned short wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
__be16 wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
int cnt = skb->data[0] ? 0 : 1; /* there may be a pad present */
|
||||
unsigned short ethertype;
|
||||
__be16 ethertype;
|
||||
|
||||
switch (skb->data[cnt]) {
|
||||
case NLPID_IP: /* IP datagramm */
|
||||
|
|
@ -379,7 +379,7 @@ unsigned short wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
|
|||
skb->data[cnt+3], dev->name);
|
||||
return 0;
|
||||
}
|
||||
ethertype = *((unsigned short*)&skb->data[cnt+4]);
|
||||
ethertype = *((__be16*)&skb->data[cnt+4]);
|
||||
cnt += 6;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue