diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-19 18:27:07 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:23 -0400 |
commit | c1a4b86e396b6870b420d23e4d49c7b685aef0a4 (patch) | |
tree | 5b5377d1aba8bb5f525833c21a50e06a4f8279a1 /net/802 | |
parent | 7c81fd8bfbaa9732eca142350de5154da6919411 (diff) |
[TR]: Use tr_hdr() were appropriate
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/802')
-rw-r--r-- | net/802/tr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/802/tr.c b/net/802/tr.c index 96bd14452c55..a6a6d46e708c 100644 --- a/net/802/tr.c +++ b/net/802/tr.c | |||
@@ -189,11 +189,12 @@ static int tr_rebuild_header(struct sk_buff *skb) | |||
189 | __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev) | 189 | __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev) |
190 | { | 190 | { |
191 | 191 | ||
192 | struct trh_hdr *trh=(struct trh_hdr *)skb->data; | 192 | struct trh_hdr *trh; |
193 | struct trllc *trllc; | 193 | struct trllc *trllc; |
194 | unsigned riflen=0; | 194 | unsigned riflen=0; |
195 | 195 | ||
196 | skb->mac.raw = skb->data; | 196 | skb->mac.raw = skb->data; |
197 | trh = tr_hdr(skb); | ||
197 | 198 | ||
198 | if(trh->saddr[0] & TR_RII) | 199 | if(trh->saddr[0] & TR_RII) |
199 | riflen = (ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8; | 200 | riflen = (ntohs(trh->rcf) & TR_RCF_LEN_MASK) >> 8; |