Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp505245ybl; Thu, 12 Dec 2019 23:20:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzOeQXv48uVf7eRPRitIM2nVcZes/HbDgoLRks6U0vqbdyIG3ziLpibB57odvlsXMyLkm2u X-Received: by 2002:a05:6830:13d9:: with SMTP id e25mr12743365otq.134.1576221605493; Thu, 12 Dec 2019 23:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576221605; cv=none; d=google.com; s=arc-20160816; b=tTxqatPmezT+h1fNe4RtWss00eTcD/oqs4cb+ZP/dHBynFe5BlP2E+SjSxL9IiboK4 YPFrjJ5TYpHqqxsmYXKsNyIJBzzVbytAms14fSmfy28mhWzGPM6iuawEiWzm3N+vzutq TAjPZGxba0wgCkxyQpvhe8XZiYvw7iYUoVfEKmAkmSDgmWRTtxwrOdlEZ4FjvQyF+VAo IY8SdGLBWwOI706+R3bduuPo7M7FWnnvJrIl3JR5WpNvbY/95/EQZildCiOC2hYdOV/V vX6KVIKMqHslVMBL6l6oYm9BlrvqE6VPCOG1awKBpM5wElTRIbJ8Q3DH/M9RDwwgVH6t EkvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Is32t3ob+p9d/Hq6ESJ8j6WmSZImYmtzoUB5cEARLkE=; b=ReDfMcC/tiJ20H60APQ/F0+BItSgOrN8CYpqk/NmQUsR22sl4tlkOcpXZhpFmYDkSS c2e+vLccECJcJwe4M0DKN/a/taeEiKmYLx5Ni+H0xxkIkEI3zpDFac/PFf/mM4L7SEEx m+/YKzy4tc/jktu9maYJXUOVYIFDUmo0J81Mzeu/pGrVdpCFqLckXMKl78x3sxu+f+kY 5k2u9XLmq2aG9hNVtyTPtUHcS6tc+wQFePYY+saXX1UyFYQEyi13VT6azjQT4lGHpVhU 6+I+1VGE0vyXX+BcpkzyDqhxBVrssjvK6K2Dt6cnA8Li2dS2qj6jRTXRZkJfFxz1HsJh 1Cyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si4472243oic.63.2019.12.12.23.19.54; Thu, 12 Dec 2019 23:20:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726368AbfLMHSM (ORCPT + 99 others); Fri, 13 Dec 2019 02:18:12 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:53352 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725497AbfLMHSM (ORCPT ); Fri, 13 Dec 2019 02:18:12 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 882569D7A5C5C710FA0A; Fri, 13 Dec 2019 15:18:09 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Fri, 13 Dec 2019 15:17:59 +0800 From: Chen Zhou To: CC: , , Subject: [PATCH] firewire: net: remove set but not used variables 'guid' Date: Fri, 13 Dec 2019 15:15:10 +0800 Message-ID: <20191213071510.177751-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Chen Zhou --- drivers/firewire/net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c index 715e491..2878564 100644 --- a/drivers/firewire/net.c +++ b/drivers/firewire/net.c @@ -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) { -- 2.7.4