From: Christian Engelmayer Date: Fri, 7 Feb 2014 21:58:38 +0000 (+0100) Subject: 6lowpan: Remove unused pointer in lowpan_header_create() X-Git-Tag: submit/tizen/20160607.132125~5127^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=310f6fd0ca9de8c1fc6399af494855e15157aa35;p=sdk%2Femulator%2Femulator-kernel.git 6lowpan: Remove unused pointer in lowpan_header_create() Commit 8df8c56a (6lowpan: Moving generic compression code into 6lowpan_iphc.c) left pointer 'hdr' unused - remove it. Detected by Coverity: CID 1164868. Signed-off-by: Christian Engelmayer Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 48b25c0..8bfb401 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -106,7 +106,6 @@ static int lowpan_header_create(struct sk_buff *skb, unsigned short type, const void *_daddr, const void *_saddr, unsigned int len) { - struct ipv6hdr *hdr; const u8 *saddr = _saddr; const u8 *daddr = _daddr; struct ieee802154_addr sa, da; @@ -117,8 +116,6 @@ static int lowpan_header_create(struct sk_buff *skb, if (type != ETH_P_IPV6) return 0; - hdr = ipv6_hdr(skb); - if (!saddr) saddr = dev->dev_addr;