Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp265679pxj; Fri, 14 May 2021 02:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzIktBLf9tjXLbNb+qJTNY8Mmle6x2+8lKTvTKNCMVKsH0eokDF70w/X1HUQv3IoHAe1IC X-Received: by 2002:a05:6602:229a:: with SMTP id d26mr33611352iod.201.1620986248775; Fri, 14 May 2021 02:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620986248; cv=none; d=google.com; s=arc-20160816; b=o1kDmYOXw9JLMsb/cL2wYSvZUVqPHtIG5Ao8CGVJ9mMCS2evJGHhEJT88S+nrbyzKK nKOEOjV1/7M+kM7O4cuuBP+gWAHQXJwtYm7gyWEDK+JnZCHQZQEpW6e6drjhRlPlVhDK RUv3LZ+ln9x/WnXXWl3RqqCXl406SijTig7SX/qPtydvZ2SAcB9uQBMnIiPhSo6iXtSs UroyOLLk7Q0KoicJTZ9E0SU+96XDovxj2YHK92iCBAWyTNby04wlrG58r3V5657z7C+h 6CA/BcZuGbSr7DZomwL/1gMOfDK1uUulsbtGwEirsFHOny7raohOvTahBW+SeTbSCMEm EGAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hTHgeLDseGB/ZmdqwH3Xjq/f1+jdCg0L9D4vZ+cqpGU=; b=lUgk0Z5XaGWyUy6tYZYzni+yzFsKokn5Fs+feJsduRFsn5n60d1OaAVjLqSyIPgNhB v4tReQhy/M9xwsIscHx2xom+pk9HGkkLvINRW6N/NzeGU0VtEaf8ODMHwMbo0Tl8rCKQ 3aM31J4+CbkHAU7/2e8/2o8YwZSA3zvmrmCebWcdwnedV8nFp+Jjv5+JvM6qRaL5J203 KOnNf0NIyH2qb54D0+hzjXkuQ59TgiURfaknxCdb5IM+JiZ9DxIweNL3op5/WDaMUHxj 6VQTzTMn5jvztmFn31K/rFatzEckySdkJEWq+WSvBeN8Ut3+iN6Y7jwHKLGgIAustc6i Mbig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si6519513jan.37.2021.05.14.02.57.16; Fri, 14 May 2021 02:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232685AbhENHHM (ORCPT + 99 others); Fri, 14 May 2021 03:07:12 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2918 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbhENHHL (ORCPT ); Fri, 14 May 2021 03:07:11 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FhKHT2njszBsGN; Fri, 14 May 2021 15:03:17 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.98) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Fri, 14 May 2021 15:05:54 +0800 From: Pu Lehui To: CC: , , Subject: [PATCH -next] firewire: net: remove unused variable 'guid' Date: Fri, 14 May 2021 15:06:21 +0800 Message-ID: <20210514070621.73356-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.174.98] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 in function , this commit remove it to fix the warning. Signed-off-by: Pu Lehui --- drivers/firewire/net.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c index 715e491dfbc3..4c3fd2eed1da 100644 --- a/drivers/firewire/net.c +++ b/drivers/firewire/net.c @@ -488,9 +488,7 @@ 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; - __be64 guid; switch (ether_type) { case ETH_P_ARP: @@ -503,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; @@ -512,7 +509,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) { -- 2.17.1