Skip to content

Commit 53bb4a9

Browse files
Pu LehuiStefan Richter
authored andcommitted
firewire: net: remove unused variable 'guid'
GCC reports the following warning with W=1: drivers/firewire/net.c:493:9: warning: variable ‘guid’ set but not used [-Wunused-but-set-variable] 493 | __be64 guid; | ^~~~ This variable is not used anymore since commit 6752c8d ("firewire net, ipv4 arp: Extend hardware address and remove driver-level packet inspection."). Remove it to fix the warning. Signed-off-by: Pu Lehui <[email protected]> Signed-off-by: Stefan Richter <[email protected]>
1 parent 62fb987 commit 53bb4a9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/firewire/net.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
488488
struct sk_buff *skb, u16 source_node_id,
489489
bool is_broadcast, u16 ether_type)
490490
{
491-
struct fwnet_device *dev;
492491
int status;
493-
__be64 guid;
494492

495493
switch (ether_type) {
496494
case ETH_P_ARP:
@@ -503,7 +501,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
503501
goto err;
504502
}
505503

506-
dev = netdev_priv(net);
507504
/* Write metadata, and then pass to the receive level */
508505
skb->dev = net;
509506
skb->ip_summed = CHECKSUM_NONE;
@@ -512,7 +509,6 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
512509
* Parse the encapsulation header. This actually does the job of
513510
* converting to an ethernet-like pseudo frame header.
514511
*/
515-
guid = cpu_to_be64(dev->card->guid);
516512
if (dev_hard_header(skb, net, ether_type,
517513
is_broadcast ? net->broadcast : net->dev_addr,
518514
NULL, skb->len) >= 0) {

0 commit comments

Comments
 (0)