Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3610400rwl; Mon, 27 Mar 2023 17:12:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bJ922f08YKmQtTR5BQsUP88XdQm9kl6O7IvjenSqBQwS6VFgxVIt01oUQNme9HkNaQI5Nm X-Received: by 2002:a17:906:c791:b0:8f2:62a9:6159 with SMTP id cw17-20020a170906c79100b008f262a96159mr15380027ejb.2.1679962342928; Mon, 27 Mar 2023 17:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679962342; cv=none; d=google.com; s=arc-20160816; b=Ptnrn8EFMz1lqf0M3S4Ur93FhVlNZKYwEeukURTnXVjp72jpsqvRWNdhGoaGnn4C1P BZDLtAIX4erJtiK3G6h1OCv7WIdyVG1oOAGsfEOYUugNZS7AsEkDTSKTw2rlqq38GQis NER9cFsW1UYz5lIJ5y0QibVsKayLN+qwwBO97d5NnaWAiACaTEUvBPrUr+2MulO6pfqp jpSDs6/Eu7de0lwEPjnOGFSYmoJiaqGSgC1Lxo2mWpWep858silJ/UEzofe6iYbreZaB ibaqt55CaT6XT288FcujZNFbuoqtVVNEb5PsmAuNbxNBrTnJVk+NwddsKCT8PPf7dtpM P1yA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr30-20020a1709073f9e00b009341b1b8735si25550401ejc.851.2023.03.27.17.11.58; Mon, 27 Mar 2023 17:12:22 -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 S232206AbjC0XzR (ORCPT + 99 others); Mon, 27 Mar 2023 19:55:17 -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 ); 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 ; 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 ; 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 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/8390/axnet_cs.c | 3 --- 1 file changed, 3 deletions(-) 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++; } - } /*====================================================================*/ -- 2.27.0