mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-20 11:34:02 +08:00
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>
This commit is contained in:
parent
1f99fc7fff
commit
77afe3b82e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user