[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210324084747.957759-1-xujia39@huawei.com>
Date: Wed, 24 Mar 2021 16:47:47 +0800
From: Xu Jia <xujia39@...wei.com>
To: <stefanr@...6.in-berlin.de>
CC: <linux1394-devel@...ts.sourceforge.net>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] firewire: net: remove unused variable 'dev'
The variable 'dev' is not used in function, remove it to fix the warning.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Xu Jia <xujia39@...wei.com>
---
drivers/firewire/net.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 28785642a5c5..4c3fd2eed1da 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -488,7 +488,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
struct sk_buff *skb, u16 source_node_id,
bool is_broadcast, u16 ether_type)
{
- struct fwnet_device *dev;
int status;
switch (ether_type) {
@@ -502,7 +501,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
goto err;
}
- dev = netdev_priv(net);
/* Write metadata, and then pass to the receive level */
skb->dev = net;
skb->ip_summed = CHECKSUM_NONE;
--
2.25.1
Powered by blists - more mailing lists