]> www.infradead.org Git - users/hch/block.git/commitdiff
firewire: net: remove set but not used variable 'guid'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 1 Nov 2018 02:33:38 +0000 (10:33 +0800)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 30 Dec 2019 10:04:48 +0000 (11:04 +0100)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/firewire/net.c:488:9: warning:
 variable ‘guid’ set but not used [-Wunused-but-set-variable]

It is not used anymore after commit 6752c8db8e0c ("firewire net, ipv4
arp: Extend hardware address and remove driver-level packet inspection.")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/net.c

index b132ab9ad6078f5a9a3d57e3088387a9a0a05789..4dde2890be9a3f181a2dd2310180131f1e1c0e55 100644 (file)
@@ -486,7 +486,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:
@@ -508,7 +507,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) {