firewire: net: remove set but not used variables 'guid'
PATCH 1/1 firewire: net: remove set but not used variables 'guid'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/firewire/net.c: In function fwnet_finish_incoming_packet:drivers/firewire/net.c:488:9: warning: variable guid set but not used [-Wunused-but-set-variable]
Reported-by Hulk Robot <[email protected]>
Signed-off-by Chen Zhou <[email protected]>
--- drivers/firewire/net.c | 2 -- 1 file changed, 2 deletions(-)
drivers/firewire/net.c +0 -2
@@ -490,7 +490,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net, {struct fwnet_device *dev;int status; -__be64 guid;switch (ether_type) {case ETH_P_ARP :
@@ -512,7 +511,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net,* Parse the encapsulation header. This actually does the job of * converting to an ethernet-like pseudo frame header. */ - guid =cpu_to_be64 (dev->card->guid);if (dev_hard_header (skb, net, ether_type, is_broadcast ? net->broadcast : net->dev_addr,NULL , skb->len) >=0 ) {
Signature · 1 line
2.7.4