Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2892641rwl; Tue, 27 Dec 2022 00:56:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXsGThJEhaxKIbWxntL3rokvVYC3Ph4+sxCWp4cb1ji3nTn5VOB/DmHbaIT5UqCAxMNIEmiG X-Received: by 2002:a05:6402:8d9:b0:470:49a2:ad70 with SMTP id d25-20020a05640208d900b0047049a2ad70mr18614681edz.5.1672131405207; Tue, 27 Dec 2022 00:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672131405; cv=none; d=google.com; s=arc-20160816; b=ctCYZPcRJ/+ma/KgkQTeaRiwTGhicRHXb2wuNun8wEbqXTPsINAFmFdxFzQml4kMkl zzuAGyWSIyKhI6E3gRZrrIssyvzllmj4gDbC3CkmEKLN2S1aXlsUuupeAmNawzlWsJHD R3BVTOfl6NctvK3LU5ZM7FFyHzX9+G+U9oIuABXawVRRPEmTO6+nFJrjSEi6SgPobBrY ehEAaMJK9DDaYcJE1O/4bw3Fjlm9eYnjAc0zVh9xPi8pDmdypuY5//dl2Ap+E0sMtTP7 qiCjxxMjRAHUyOqqR6hNltrDKVhaQoU7LwUBdH2Nel+jQNUQID4gOvZAMC1xqnTcgSFh za6A== 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=upjvHeg0MB2+4jS7Er2ekAEFqFgwbXQoZJ7ZCx2gXR0=; b=nqHvob3d6rEe7Uw9mG3lbOwEPGKhkKMAOKr6XxwlfQuqOsSVpBSuYBG5fc1ULlHfpW I7xKz2SgR8MVPXTfRcyRLHytMpXxFLPJmAseKQIe8b+hdqz2v5IQvHtl3GF69hPNzoss 7szUha+qrXQvsIJ1NZZ2V3tWuqy0MsBSFx6nLeFuu91dPWZYX8n5BARgyPS+BmA4J1Gs LXQIV33qRNELdV2p0vDgNwXUouJ+FDaP8VwYbHdaD8Rn1rgI4WRkhW8m7lSICDp7cdxP AdQO1r9dwBwGm3GGyEVJfbI4zOcYKWJ49SXODjeX13htmEcqehbGfjksqBmr76VjwuJW bxfQ== 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 y14-20020a50e60e000000b0046d57bba913si9893227edm.520.2022.12.27.00.56.25; Tue, 27 Dec 2022 00:56:45 -0800 (PST) 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 S229936AbiL0ITs (ORCPT + 67 others); Tue, 27 Dec 2022 03:19:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbiL0ITj (ORCPT ); Tue, 27 Dec 2022 03:19:39 -0500 Received: from out30-8.freemail.mail.aliyun.com (out30-8.freemail.mail.aliyun.com [115.124.30.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9930E8FD4; Tue, 27 Dec 2022 00:19:32 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VYCwgaT_1672129163; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VYCwgaT_1672129163) by smtp.aliyun-inc.com; Tue, 27 Dec 2022 16:19:29 +0800 From: Jiapeng Chong To: agross@kernel.org Cc: andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] mfd: qcom-pm8xxx: Remove set but unused variable 'rev' Date: Tue, 27 Dec 2022 16:19:21 +0800 Message-Id: <20221227081921.56448-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_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-kernel@vger.kernel.org Variable rev is not effectively used in the function, so delete it. drivers/mfd/qcom-pm8xxx.c:513:6: warning: variable 'rev' set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3558 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/mfd/qcom-pm8xxx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c index 601106580e2e..9a948df8c28d 100644 --- a/drivers/mfd/qcom-pm8xxx.c +++ b/drivers/mfd/qcom-pm8xxx.c @@ -510,7 +510,6 @@ static int pm8xxx_probe(struct platform_device *pdev) struct regmap *regmap; int irq, rc; unsigned int val; - u32 rev; struct pm_irq_chip *chip; data = of_device_get_match_data(&pdev->dev); @@ -535,7 +534,6 @@ static int pm8xxx_probe(struct platform_device *pdev) return rc; } pr_info("PMIC revision 1: %02X\n", val); - rev = val; /* Read PMIC chip revision 2 */ rc = regmap_read(regmap, REG_HWREV_2, &val); @@ -545,7 +543,6 @@ static int pm8xxx_probe(struct platform_device *pdev) return rc; } pr_info("PMIC revision 2: %02X\n", val); - rev |= val << BITS_PER_BYTE; chip = devm_kzalloc(&pdev->dev, struct_size(chip, config, data->num_irqs), -- 2.20.1.7.g153144c