From nobody Thu Sep 11 10:17:33 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 399A5C2FC0E for ; Thu, 17 Aug 2023 11:46:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350415AbjHQLps (ORCPT ); Thu, 17 Aug 2023 07:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350437AbjHQLpa (ORCPT ); Thu, 17 Aug 2023 07:45:30 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1EF01728 for ; Thu, 17 Aug 2023 04:45:28 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RRNQB2V4TzNmm2; Thu, 17 Aug 2023 19:41:54 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 17 Aug 2023 19:45:26 +0800 From: Li Zetao To: CC: , , Subject: [PATCH -next v2] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg() Date: Thu, 17 Aug 2023 19:45:05 +0800 Message-ID: <20230817114505.1810920-1-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230802092342.970476-1-lizetao1@huawei.com> References: <20230802092342.970476-1-lizetao1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a warning reported by kernel test robot: drivers/mfd/ipaq-micro.c:81:6: warning: unused variable =E2=80=98i=E2=80=99 [-Wunused-variable] Since the commit 92d82d76c842 ("mfd: ipaq-micro: Use %*ph for printing hexdump of a small buffer"), the variable 'i' is unused. Remove it to silence the warning. Reported-by: kernelci.org bot Closes: https://lore.kernel.org/all/64c8aeac.170a0220.e3234.2745@mx.google.= com/ Signed-off-by: Li Zetao --- v1 -> v2: Modify the format of the reference commit and add warning information v1: https://lore.kernel.org/all/20230802092342.970476-1-lizetao1@huawei.com/ drivers/mfd/ipaq-micro.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index cddfd2e808f2..c964ea6539aa 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c @@ -78,8 +78,6 @@ EXPORT_SYMBOL(ipaq_micro_tx_msg); =20 static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *dat= a) { - int i; - dev_dbg(micro->dev, "RX msg: %02x, %d bytes\n", id, len); =20 spin_lock(µ->lock); --=20 2.34.1