Message ID | 20231214184050.1272848-2-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8765168dys; Thu, 14 Dec 2023 10:41:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCd4goP3sUTPAbSj+qXVm0/YptsLfFcOe7qT9MWWR6nz6FuLshrmQvcFNLNimEqbyZ0Czg X-Received: by 2002:a05:6a00:1248:b0:6ce:5373:96c9 with SMTP id u8-20020a056a00124800b006ce537396c9mr6087742pfi.40.1702579283508; Thu, 14 Dec 2023 10:41:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702579283; cv=none; d=google.com; s=arc-20160816; b=ujVVeV9fSswXNqEQhFhJLwp0q0PS88NPjCU5dZdh+DvqFOA2IhumFcxqQY7veGtBef gAm/Kahs3uX8Rp2/IBBo7SP0Q3mHdFj6BMGyLWCdSd5fbIWVdxhq8uEsPmsGBrYpaajn R4IXWn6HP7RO16P3bfko2roxpno5k2c46awQw7J4adrMZG/3Vmyd7WafJPALTwk25FVV DHZviTVrbLBB3D5Mlew5BhysxwqWcBDa3Nz3m/YEkKXL8t5dEeX4cKkdAIkyYNpACBfx Z35jRY6NaEGeAoWnccOCxrbVOekftCoDcSQblYmSWjgRiINM6ucla5w25MQRlcLueXjR gaXA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E8DYdmIY6lIpBkClg2aQTPotC4Ck+w2qUQqE36YmfdM=; fh=gYRgAXbu/FHO/Cqj/TKspqZnXUXsvaSPLTSdapZ7Ru0=; b=UtXRYFTYmYrV2gaEDAl4fBFFFkqsoplF8xVs6WgtbA8oDEgKgFYVgvkfeoc+GhP/mA gUwDX04bL9o17wf6xD4cnH0lrhHpLhkVu8EeY2ZrwSw4mD9ZfV9wN6lMep/l2tQGc8HX QzkVCcUDnWgJIfktrSxURwBeJ65t7jhDS8nVOld7/k336HlJPU/NYYxMc07c0voBPs3S HNJL5JHU5GA0NiDhNrfjN267ieDk+Jd9Fjskx+LsRWgsAdeoLwCU8V4nIsk0+aIES8jH D0bb1O/3IQQP5hSFLAoTdVFhD4ESyrLPiU63ZUwnjVXZrvyVHOdUUXNkkzj1VP65MZO+ ts3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HDOuX50S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h10-20020a65518a000000b005c1cc9caf0asi11698497pgq.899.2023.12.14.10.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 10:41:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HDOuX50S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 22BFE809638C; Thu, 14 Dec 2023 10:41:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1572937AbjLNSkx (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 14 Dec 2023 13:40:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbjLNSkw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Dec 2023 13:40:52 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134CC10E; Thu, 14 Dec 2023 10:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702579259; x=1734115259; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=G18B/IrnfrebrjvuaMIQ0eCCWtBtYWxi9zew/6c/ODs=; b=HDOuX50Skft9RqXi5wDVrpxjOrP5dcz7dBbaATjyPOQrx5TYBGsc+SU6 s+nGb+zXW5yU0cq6O/RutLpa45MDzVGhJ+ni5Ap3H1y1LURHgER4/tjtJ uL4Pi/o1dUdAkk8v17Rub4keqJ5fUBcWwXnsGJpyKBD7sOi6Szmy0GTF9 Q+jv2M8+C+++ua34jNpBaP0cfSiQryPs/8ogeZV5LDgyYwrasAHuNUiyh 6xzSoD17Ag85JBj1V9wC464RXTk8nQK8sDQGfhzJI91P/MpneUNte/u9V Hc98qwTzm+tyZW+9IIf45aOtM+3uf5X9eH4Zm0pf4rxQu999fpQ73MScL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="385582264" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="385582264" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 10:40:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="840374564" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="840374564" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 14 Dec 2023 10:40:56 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 1BF5B13A; Thu, 14 Dec 2023 20:40:53 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Patrick Rudolph <patrick.rudolph@9elements.com>, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org> Subject: [PATCH v1 1/4] leds: max5970: Remove unused variable Date: Thu, 14 Dec 2023 20:40:08 +0200 Message-ID: <20231214184050.1272848-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231214184050.1272848-1-andriy.shevchenko@linux.intel.com> References: <20231214184050.1272848-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 10:41:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785283774816468240 X-GMAIL-MSGID: 1785283774816468240 |
Series | leds: max5970: Allow to use on non-OF platforms | |
Commit Message
Andy Shevchenko
Dec. 14, 2023, 6:40 p.m. UTC
leds-max5970.c:50:21: warning: variable 'num_leds' set but not used [-Wunused-but-set-variable]
Remove unused variable.
Fixes: 736214b4b02a ("leds: max5970: Add support for max5970")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/leds/leds-max5970.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/leds/leds-max5970.c b/drivers/leds/leds-max5970.c index 456a16a47450..7959d079ae94 100644 --- a/drivers/leds/leds-max5970.c +++ b/drivers/leds/leds-max5970.c @@ -45,7 +45,7 @@ static int max5970_led_probe(struct platform_device *pdev) struct regmap *regmap; struct device_node *led_node, *child; struct max5970_led *ddata; - int ret = -ENODEV, num_leds = 0; + int ret = -ENODEV; regmap = dev_get_regmap(pdev->dev.parent, NULL); if (!regmap) @@ -89,7 +89,6 @@ static int max5970_led_probe(struct platform_device *pdev) dev_err(dev, "Failed to initialize LED %u\n", reg); return ret; } - num_leds++; } return ret;