Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
77afe3b8 1f99fc7f

+1 -1
+1 -1
drivers/net/arcnet/capmode.c
··· 44 44 { 45 45 struct arcnet_local *lp = netdev_priv(dev); 46 46 struct sk_buff *skb; 47 - struct archdr *pkt = pkthdr; 47 + struct archdr *pkt; 48 48 char *pktbuf, *pkthdrbuf; 49 49 int ofs; 50 50