Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1494065rwl; Wed, 29 Mar 2023 19:32:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZM38r7+yIitFBzYdgpTrI6HblphJyiZoRO/zgtrTFnaHp19h7rgxUlJfpBprtu3GQOVmrP X-Received: by 2002:a05:6a20:7f86:b0:db:5e69:c97d with SMTP id d6-20020a056a207f8600b000db5e69c97dmr4063347pzj.25.1680143520492; Wed, 29 Mar 2023 19:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680143520; cv=none; d=google.com; s=arc-20160816; b=T8yC7Ypp0JXC1BiVL8EtWCo5RVzZy5/lysYFw0JlhbdAeTbmw54rMmUnxCHw3L2uV9 r7ILinsz66HBioGYVSNBn46cS+dOOkQ5CaC59R7kDNqgJoqe0AVueJ/asBRfX3h42KNF J9mEaNadPkmZQSGqjJnIKWKHtuf2EXNdn5TgMccZqKnz+jLVe0J4emdSCwznIwzUZ4xt gDIjOrje18XNk2vCezfbnYF7hInMMPU4pil4s8jgB32gf82R6LFtVt0+INgk5RTmV8ij IwitgoewzXDRImlQ9dNcFoxF18kQGM6biWo0UObeau9juN7fIqntewIQ7bhAwY6lBJrm WrZQ== 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=zlHmebtv1bPc+vnPv3kHmCuk8jMdeuNt++kjFxJQ3Hc=; b=cYFOAwHG0tT56F3WjsT7kRtDHT1XqLXihcVfAqsxl8E2JEJTC13S4lj6V/aL9ugGjr dyB3rG+0IHicJnPdtx4Nz1WS+06I7gH2Qu1OVfCDUDl/DOjuvgpnE73SB5iYD/Afr0sK XSb6GUXLG6GdpuTRC+f23RbzWzmuI0TGt9v4VZ5B5pM/nN6vZ5ZwOhDm0sdf4ZRpr1ai U5O/XfOLUuuT+I6e5UCQorifMLGf0PWkprCPq8k4tAxT2SRox4Ia+LlVTWgdHxP8yMWL 3mGIK0145nl3sWstbrxkFRTHmzZ8RCtDGe5o6qtc3mWtHea9pDq+Joc2usdJrPXUqH5y cvGA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y23-20020a63de57000000b0051339e73e3asi11104866pgi.314.2023.03.29.19.31.47; Wed, 29 Mar 2023 19:32:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjC3CS4 (ORCPT + 99 others); Wed, 29 Mar 2023 22:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjC3CSy (ORCPT ); Wed, 29 Mar 2023 22:18:54 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3832349ED; Wed, 29 Mar 2023 19:18:53 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R411e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VeyhhZG_1680142724; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VeyhhZG_1680142724) by smtp.aliyun-inc.com; Thu, 30 Mar 2023 10:18:50 +0800 From: Jiapeng Chong To: Larry.Finger@lwfinger.net Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] b43legacy: Remove the unused function prev_slot() Date: Thu, 30 Mar 2023 10:18:41 +0800 Message-Id: <20230330021841.67724-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 The function prev_slot is defined in the dma.c file, but not called elsewhere, so remove this unused function. drivers/net/wireless/broadcom/b43legacy/dma.c:130:19: warning: unused function 'prev_slot'. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4642 Signed-off-by: Jiapeng Chong --- drivers/net/wireless/broadcom/b43legacy/dma.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43legacy/dma.c b/drivers/net/wireless/broadcom/b43legacy/dma.c index 6869f2bf1bae..60e41de72f29 100644 --- a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -127,14 +127,6 @@ static inline int next_slot(struct b43legacy_dmaring *ring, int slot) return slot + 1; } -static inline int prev_slot(struct b43legacy_dmaring *ring, int slot) -{ - B43legacy_WARN_ON(!(slot >= 0 && slot <= ring->nr_slots - 1)); - if (slot == 0) - return ring->nr_slots - 1; - return slot - 1; -} - #ifdef CONFIG_B43LEGACY_DEBUG static void update_max_used_slots(struct b43legacy_dmaring *ring, int current_used_slots) -- 2.20.1.7.g153144c