]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arcnet: capmode: remove redundant assignment to pointer pkt
authorColin Ian King <colin.king@canonical.com>
Wed, 28 Aug 2019 23:14:50 +0000 (00:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:14:46 +0000 (14:14 -0700)
Pointer pkt is being initialized with a value that is never read
and pkt is being re-assigned a little later on. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Ununsed value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/capmode.c

index b780be6f41ff9f72f40c2a56c3fcccaf8b877511..c09b567845e1eeb025eff26c77ad5e22f6db150f 100644 (file)
@@ -44,7 +44,7 @@ static void rx(struct net_device *dev, int bufnum,
 {
        struct arcnet_local *lp = netdev_priv(dev);
        struct sk_buff *skb;
-       struct archdr *pkt = pkthdr;
+       struct archdr *pkt;
        char *pktbuf, *pkthdrbuf;
        int ofs;