Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7941825rwb; Mon, 12 Dec 2022 23:13:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Z1SMROuY+KHDD8uz270BCA7CWqu2XInrKsHVETGjaWAG+1U1SozK3AjzvHFgDXFeR3W9j X-Received: by 2002:a17:906:f214:b0:7c0:f459:d09c with SMTP id gt20-20020a170906f21400b007c0f459d09cmr15467700ejb.16.1670915636778; Mon, 12 Dec 2022 23:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670915636; cv=none; d=google.com; s=arc-20160816; b=krybUcs44Wn34hh2fy3I84J6N46cl4DpckKE7j2l4krfxDSTAOCDIK7n4MT93s7kr4 e4UFiWNA5qGHJqsg+MHOTNsXKG2n+gRFJsQDNWx+26e3j+HhbvYf2jD/vc9/vk+rgRPP hBZwRZGSlLvtxCNg61HpiQOIIv1cdMtNK+oK1Wrnz8ZU6PtJgt/PGff+LU2MDnhRm6hw 8O7R7gzuEowPlqyXlJALvfOuarSz5p4EI2gGS7ZyQMgykF7fmC+4Y/padg4+qzg1ofnl pD9Xn1yUwSn7m/9gVobxpnzI6va53yUmcA+yZ7X0/gdi84FNbkVDNSFNdzPHZrpmhdho Qd1Q== 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=c6tTs2TpkCHINNS/s58AY7w7le4EdXi/sdeErUmssgo=; b=uKQO6NixCUc6YHf+JrHR3OWDUb6KJhXGz7FxDOG/CwNEypEtSpsWxJLFYgBNTCExxO D7Sq5sTDphI7pxqEZi0z7kKrPoWFzzhPGT7QmeJENHnXBUbLfnSEUk6jYDztDxbcuWzV H2nnvPXpWVju6Y+BYvmpP5Xs8UkFOSMsWHWR6k4gzZ2cLgGrvNPNPkogbm8Ruq2nLpKN wyyOgssClhKbGTljq2POP3y1tK6hG1AeEgWqBah2Z/j6IV0pr3v7T3J525TrY0mfzdzZ Ny83cL5QDfSq/alrNkqtdrHWHdZsUiB8w9kpehZaiIrgTnAssOKelBWDyJpyhLjvYoBe rhCw== 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 dn3-20020a17090794c300b007c1727f7c6fsi3780492ejc.261.2022.12.12.23.13.35; Mon, 12 Dec 2022 23:13:56 -0800 (PST) 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 S234414AbiLMHHW (ORCPT + 66 others); Tue, 13 Dec 2022 02:07:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbiLMHHV (ORCPT ); Tue, 13 Dec 2022 02:07:21 -0500 Received: from out30-6.freemail.mail.aliyun.com (out30-6.freemail.mail.aliyun.com [115.124.30.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6076BFCF4; Mon, 12 Dec 2022 23:07:19 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R901e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jiapeng.chong@linux.alibaba.com;NM=0;PH=DS;RN=11;SR=0;TI=SMTPD_---0VXCoiVi_1670915230; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VXCoiVi_1670915230) by smtp.aliyun-inc.com; Tue, 13 Dec 2022 15:07:16 +0800 From: Jiapeng Chong To: gregory.greenman@intel.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] iwlwifi: mvm: Remove the unused function iwl_dbgfs_is_match() Date: Tue, 13 Dec 2022 15:07:08 +0800 Message-Id: <20221213070708.13619-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,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 iwl_dbgfs_is_match is defined in the debugfs-vif.c file, but not called elsewhere, so remove this unused function. drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c:441:21: warning: unused function 'iwl_dbgfs_is_match'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3433 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c index 78d8b37eb71a..3779ac040ba0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c @@ -438,13 +438,6 @@ static ssize_t iwl_dbgfs_bf_params_read(struct file *file, return simple_read_from_buffer(user_buf, count, ppos, buf, pos); } -static inline char *iwl_dbgfs_is_match(char *name, char *buf) -{ - int len = strlen(name); - - return !strncmp(name, buf, len) ? buf + len : NULL; -} - static ssize_t iwl_dbgfs_os_device_timediff_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) -- 2.20.1.7.g153144c