firewire: net: Removed unused variable dev
PATCH 1/1 firewire: net: Removed unused variable dev
kernel test robot throws below warning ->
All warnings (new ones prefixed by >>):
drivers/firewire/net.c: In function 'fwnet_finish_incoming_packet':
Quoted 2 lines
Quoted 2 lines
drivers/firewire/net.c:491:23: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
491 | struct fwnet_device *dev;
| ^~~Removed unused variable *dev.
Reported-by kernel test robot <[email protected]>
Signed-off-by Souptick Joarder <[email protected]>
--- drivers/firewire/net.c | 2 -- 1 file changed, 2 deletions(-)
drivers/firewire/net.c +0 -2
@@ -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 ;
Signature · 1 line
1.9.1