This patch is just a little cleanup to use *skb_network_header(skb) instead of skb->data[0]. Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- net/ieee802154/6lowpan/rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan/rx.c b/net/ieee802154/6lowpan/rx.c index 22a1db4..a7b9d39 100644 --- a/net/ieee802154/6lowpan/rx.c +++ b/net/ieee802154/6lowpan/rx.c @@ -106,14 +106,14 @@ static int lowpan_rcv(struct sk_buff *skb, struct net_device *dev, goto drop_skb; /* check that it's our buffer */ - if (skb->data[0] == LOWPAN_DISPATCH_IPV6) { + if (*skb_network_header(skb) == LOWPAN_DISPATCH_IPV6) { /* Pull off the 1-byte of 6lowpan header. */ if (lowpan_fetch_skb(skb, NULL, 1)) goto drop_skb; return lowpan_give_skb_to_devices(skb, NULL); } else { - switch (skb->data[0] & 0xe0) { + switch (*skb_network_header(skb) & 0xe0) { case LOWPAN_DISPATCH_IPHC: /* ipv6 datagram */ ret = iphc_decompress(skb, &hdr); if (ret < 0) -- 2.2.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html