summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-29 02:14:50 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-31 00:14:46 +0300
commit77afe3b82e97c2d1a066d038344bbce8bb8f7d85 (patch)
tree3081b9a546ab5cf0ce736f28eb72678f6cc4db75
parent1f99fc7fffa5beab7b5dddf666b8036ba95f95c5 (diff)
downloadlinux-77afe3b82e97c2d1a066d038344bbce8bb8f7d85.tar.xz
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>
-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;