summaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-29 00:14:50 +0100
committerDavid S. Miller <davem@davemloft.net>2019-08-30 14:14:46 -0700
commit77afe3b82e97c2d1a066d038344bbce8bb8f7d85 (patch)
tree3081b9a546ab5cf0ce736f28eb72678f6cc4db75 /drivers/net/arcnet
parent1f99fc7fffa5beab7b5dddf666b8036ba95f95c5 (diff)
downloadlinux-77afe3b82e97c2d1a066d038344bbce8bb8f7d85.tar.bz2
arcnet: capmode: remove redundant assignment to pointer pkt
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>
Diffstat (limited to 'drivers/net/arcnet')
-rw-r--r--drivers/net/arcnet/capmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c
index b780be6f41ff..c09b567845e1 100644
--- a/drivers/net/arcnet/capmode.c
+++ b/drivers/net/arcnet/capmode.c
@@ -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;