* [PATCH -next] firewire: net: remove set but not used variable 'dev'
@ 2020-01-08 12:49 YueHaibing
0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2020-01-08 12:49 UTC (permalink / raw)
To: stefanr; +Cc: linux1394-devel, linux-kernel, YueHaibing
drivers/firewire/net.c:491:23: warning:
variable dev set but not used [-Wunused-but-set-variable]
This variable also is not needed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/firewire/net.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 2878564..4c3fd2e 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.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-08 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 12:49 [PATCH -next] firewire: net: remove set but not used variable 'dev' YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).