Message ID | 20230327235423.1777590-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1873171vqo; Mon, 27 Mar 2023 17:16:33 -0700 (PDT) X-Google-Smtp-Source: AKy350YNEMg67XD+NtVx0Fty0lCLSQ5VPZjsgvwz5fwv//WTNzatFhIGN8q3LrmtlEC/BZ0yiNab X-Received: by 2002:a05:6402:44b:b0:4fa:b05e:ced5 with SMTP id p11-20020a056402044b00b004fab05eced5mr13110850edw.36.1679962592831; Mon, 27 Mar 2023 17:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679962592; cv=none; d=google.com; s=arc-20160816; b=RipigjdOXDAVzdYCCN9/uG0FeD+FtsD07n6xsovnn0cyz0QGmx4B1mnYSrBHfbIOvg Z+LOMh3vBuDMQI8hz9N715F6SNwIQdCQi5pQTrVnxsamMBRqYUgDxBc+ZG1eOKlvu4Xw zqF0quN48eLp3lmN95Plt7CPQhuWY4s3He3zrD4RkcRnzYZIon9yuRhbQPp/0IIzMdwS vuoOYS62HbaPVIvjfKDWXc60bwsQnzwSRfLm0CNU0WChh3E3XKKrfZvIely4zp97XSby Brggc3QZwGtJxhTrKvbbAabg+Y/LDptyEYaoL6O3UDP4eazYJpf4OlV4XK8cMdz8umwj Ppfg== 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:dkim-signature; bh=bN/6UZ/3G3OFwtl3tDJU5Pd1KJsgKsolxsW5pCSkgR4=; b=Wytudm4xspAo1DjFyYdkx/ShEC8g4drH8N22dxsN/HPR3UVNhcgJvpgeeyqs8rGTIF jLpWb1L18WuLVPkvhPJaUzjpX4FV1J2r5iDa4+eGUvS+GEZQujkD066FLfCinNHqk02d NX1ubWmWM+AcmplFvNzeAG0PF2vLPveX20Xx/DnkaCRU5CdmnKSJq9sqNmwvr3NgLqBV 48GoBI4/Dt+4b6z7/fBZFzub1shXvzS2A/Uaq7MlXN5RQCZBGKYdfmzJZkNQ6BfEZnEY WNiu3DUidqxVzBagTumAg9G2CDhM3nf8FfYq3CdIhOxTCqOxy65HjQdwpHJye7LovsWZ RHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gmxScSDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay21-20020a056402203500b004fd1ee1380fsi30027818edb.612.2023.03.27.17.16.09; Mon, 27 Mar 2023 17:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gmxScSDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232207AbjC0XzS (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 27 Mar 2023 19:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjC0XzQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 19:55:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9B5172C for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 16:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679961272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=bN/6UZ/3G3OFwtl3tDJU5Pd1KJsgKsolxsW5pCSkgR4=; b=gmxScSDvBi5cAHhZNJ2jpWjuJvYdHRtk3q9YVGgnIVfLfd7gPSVEOTC7aRtR3caUbDsTv9 Q/i63crVEFByLZGl0yMYUo+tpXmMLZbd2UFOwLT/FXDL/UDehcCYUvbIGDs5A93pK3NB4h l0luIxy6k/vGeAeuA7+cKEhmaDM7iWw= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-435-7B7-1GzfOrqe_tp4oQCEFA-1; Mon, 27 Mar 2023 19:54:31 -0400 X-MC-Unique: 7B7-1GzfOrqe_tp4oQCEFA-1 Received: by mail-qk1-f197.google.com with SMTP id 72-20020a37064b000000b007467c5d3abeso4797041qkg.19 for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 16:54:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679961271; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bN/6UZ/3G3OFwtl3tDJU5Pd1KJsgKsolxsW5pCSkgR4=; b=za8AvLTtAEZWDLEwjZgUSVRIoBJ4T2yyocX+KE5MU4Cjvz2UmJAShbP2X4PPbIp3dT k1RmbWWMcgc1geMJYmTkfrhhimCqw4qbR1Ju3Ucyy4eG6TLNZqvzthCqMN60QqA7luAc mBkckU/LUG/v18Mk6Ixt5Xi+B/6wVlz5zuOApou4RbuJWEy/Rh7qrU5RMCQxAlBK/NTf sAUZqz7d+oZtW/XL2nOxqbhIGgdc2ALHL2P/LyvU6kgo6xg4DBmVUHY+QYHSutmoX0m4 b3ieOfeuNW7tzpdJyYMzY+oAtErPTtWyl+coPWVK0x/Kxls3YK8ideLuF/gEkA99DV29 MTJg== X-Gm-Message-State: AAQBX9dDh4QZHoR/JEpWb6X3bDalXGVSt43HfqNFDTH4jcyk/hBAXxX5 XNE9etEDXT5zAyyBNMzFMZXTCAaVHM28UqTSne1ojj+IroHfroL01yawsXD4qm6v5qTLuUX9irJ KlwdLQ9aOUL2ud85Zrv2s9/hX X-Received: by 2002:a05:6214:1c45:b0:56b:7ec7:b158 with SMTP id if5-20020a0562141c4500b0056b7ec7b158mr24155030qvb.36.1679961271137; Mon, 27 Mar 2023 16:54:31 -0700 (PDT) X-Received: by 2002:a05:6214:1c45:b0:56b:7ec7:b158 with SMTP id if5-20020a0562141c4500b0056b7ec7b158mr24155015qvb.36.1679961270903; Mon, 27 Mar 2023 16:54:30 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id m124-20020a375882000000b0073b8745fd39sm17118677qkb.110.2023.03.27.16.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:54:30 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] net: ethernet: 8390: axnet_cs: remove unused xfer_count variable Date: Mon, 27 Mar 2023 19:54:23 -0400 Message-Id: <20230327235423.1777590-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761568455874659787?= X-GMAIL-MSGID: =?utf-8?q?1761568455874659787?= |
Series |
net: ethernet: 8390: axnet_cs: remove unused xfer_count variable
|
|
Commit Message
Tom Rix
March 27, 2023, 11:54 p.m. UTC
clang with W=1 reports
drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable
'xfer_count' set but not used [-Werror,-Wunused-but-set-variable]
int xfer_count = count;
^
This variable is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/ethernet/8390/axnet_cs.c | 3 ---
1 file changed, 3 deletions(-)
Comments
On Mon, Mar 27, 2023 at 07:54:23PM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable > 'xfer_count' set but not used [-Werror,-Wunused-but-set-variable] > int xfer_count = count; > ^ > This variable is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 27 Mar 2023 19:54:23 -0400 you wrote: > clang with W=1 reports > drivers/net/ethernet/8390/axnet_cs.c:653:9: error: variable > 'xfer_count' set but not used [-Werror,-Wunused-but-set-variable] > int xfer_count = count; > ^ > This variable is not used so remove it. > > [...] Here is the summary with links: - net: ethernet: 8390: axnet_cs: remove unused xfer_count variable https://git.kernel.org/netdev/net-next/c/e48cefb9c8d1 You are awesome, thank you!
diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c index 3aef959fc25b..78f985885547 100644 --- a/drivers/net/ethernet/8390/axnet_cs.c +++ b/drivers/net/ethernet/8390/axnet_cs.c @@ -650,7 +650,6 @@ static void block_input(struct net_device *dev, int count, { unsigned int nic_base = dev->base_addr; struct ei_device *ei_local = netdev_priv(dev); - int xfer_count = count; char *buf = skb->data; if ((netif_msg_rx_status(ei_local)) && (count != 4)) @@ -662,9 +661,7 @@ static void block_input(struct net_device *dev, int count, insw(nic_base + AXNET_DATAPORT,buf,count>>1); if (count & 0x01) { buf[count-1] = inb(nic_base + AXNET_DATAPORT); - xfer_count++; } - } /*====================================================================*/