Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4061651rwi; Mon, 17 Oct 2022 00:27:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6G6hgfm27asgriUaWRRsWxR2jAyHG6elQZ25YtwesQeTlGm9UqsnOPRqjcF8QMeKabI5zW X-Received: by 2002:a17:90b:4f4e:b0:20d:9f5b:abbf with SMTP id pj14-20020a17090b4f4e00b0020d9f5babbfmr12464455pjb.148.1665991646108; Mon, 17 Oct 2022 00:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665991646; cv=none; d=google.com; s=arc-20160816; b=FZqbNDu0gFm7m58ZjUXEniIdYDV/kM95ePLnhDRaIZmWrULbw0QDTX44/IUMUVHi7Z jESG7vf+UDhnK1+guAMkDArRVWThmHoiUk5fNcUweNnqsmRdsjRs1G0+Vau21VtCmYIs hEERIrGIQMxja9SZG+6hHJ0oqMFH3UMkFwXhA9IWUhoHWt8Q0IPQy5Ye5It4MCO553k0 zSoNdSN7fYMg3eHgdXB4ehvLVPEkIpF8MIVm47fIi+VfdsUYwyexKDCWJEct7gqYvKUX +Ji+Eb/d9AqkzDU2ZrgQLWXFUIQCAG1GWetcVw+iO0O92RMKjmc9YS6HNBijsfqJ7NgQ ISIw== 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=MeF9k/UQ6AOEjeu3LNRKQCgknBiElElXKITWPttp1aA=; b=Lsqf8utzH5rn9t2UXuXvBV1ABSu5dE9XDH3CJvH3pLC/9L++c3F31llY2qXZTOOlgA 52+O6+KjKM+ZbqB2ubv0Lssy7Wm6SPjnsRZy4qyh9ncILaEzYcnGrZCtaAROkvus99tU 0Q0Ju0fyAVFMzod5Ux+YGUiTbpqPNcKOIszFytCg67p4Uff6eQoMuK4QEz0Dgo/xhZuR dAbHEqxrKMBLxB5x1Wssdne3FGJT3EOVD5UI5YmBl8r+2VujjfQBaq8CtAV9StcJ2R9p o5apIpT+EebYri7enFykqjbiObU7Zehp2CfhgrttItR1nSt9PXeLiDt+A75V/Mx051d0 lrjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 e14-20020a63ee0e000000b004393f624553si11821892pgi.864.2022.10.17.00.27.16; Mon, 17 Oct 2022 00:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S229894AbiJQHS0 (ORCPT + 63 others); Mon, 17 Oct 2022 03:18:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiJQHSZ (ORCPT ); Mon, 17 Oct 2022 03:18:25 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D3C35808B; Mon, 17 Oct 2022 00:18:22 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R861e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VSJPAsn_1665991068; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSJPAsn_1665991068) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 15:18:20 +0800 From: Jiapeng Chong To: stas.yakovlev@gmail.com Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] wireless: ipw2200: Remove the unused function ipw_alive() Date: Mon, 17 Oct 2022 15:17:46 +0800 Message-Id: <20221017071746.118685-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=-9.9 required=5.0 tests=BAYES_00, 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=ham 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-wireless@vger.kernel.org The function ipw_alive() is defined in the ipw2200.c file, but not called elsewhere, so delete this unused function. drivers/net/wireless/intel/ipw2x00/ipw2200.c:3007:19: warning: unused function 'ipw_alive'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2410 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 5b483de18c81..79d5c09757d4 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -2995,20 +2995,6 @@ static void ipw_remove_current_network(struct ipw_priv *priv) spin_unlock_irqrestore(&priv->ieee->lock, flags); } -/* - * Check that card is still alive. - * Reads debug register from domain0. - * If card is present, pre-defined value should - * be found there. - * - * @param priv - * @return 1 if card is present, 0 otherwise - */ -static inline int ipw_alive(struct ipw_priv *priv) -{ - return ipw_read32(priv, 0x90) == 0xd55555d5; -} - /* timeout in msec, attempted in 10-msec quanta */ static int ipw_poll_bit(struct ipw_priv *priv, u32 addr, u32 mask, int timeout) -- 2.20.1.7.g153144c