Message ID | 20231016161005.1471768-5-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:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3568493vqb; Mon, 16 Oct 2023 09:11:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZmn5+A+5PKwr14sD4nnsSlP8OoEtVyI7CnNqcHcMgZ6OIRF+iBFDwIsisusNoYecqYF1g X-Received: by 2002:a05:6870:ab13:b0:1e9:9f9b:eb7a with SMTP id gu19-20020a056870ab1300b001e99f9beb7amr15130170oab.4.1697472682881; Mon, 16 Oct 2023 09:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697472682; cv=none; d=google.com; s=arc-20160816; b=himpU9S+CA+sCWuuR3icQjBErxdknEylV5ycM2z+i3JKPpJa114VJGvsyvyvgDO9ce 74DY6ZGNUH5g7AGYEUZaBotKi4CxsS27rK7LYvp5iwF7fmtzz9GevspTzL17rXmylMaw 7JKnN8zopDokSdjOYu7xvapq4KtABpYH5H2pbNVJ9nhKoUrZsEZRhhpJFrV8Gl2mUahs Rh/cKEWUBQ5i2Nz5sCGJyV9ZYTruiUsRiKPl6Xpw1kjVXvOSjBJKavtFhnVOiwDkISjk EMQ2Fu7ReGghMIXnZlBXDU/3SGGWh3+QB9nxyC48DQUBD2pvWBgSJqEM+JJUt7ZfBhdX glLA== 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=LU7WfR01LO969aOUKAeYir58Lkl8yZMKqu9q5Tdg8Jw=; fh=tUAC4oQq3UuKajr6ZMoB53sspoioCuMU4y0NrDbDhac=; b=UZwPV8l1ywDFhYgr2M7jP3d8oRL+6/Irby2qgzLViU1Nb4kYilF/9frK2gsCetmBT0 65vytGkrTwdKIx7ZV8zduSEgkftDBzsVnXPgxOsxkuZz+2bcnSvZ4B3/mrgF9EoG9we3 6uDLXGPyHlZ5FpLiBVhzil+8XRpzG4Bt9iuV8M5ZHzvFiCdk317tDJQzpyC3iUGoU6e6 QuSoL9nly5Ls92YyziHs9XzJgQbM59fTNun1Cj4Eo5nLd1bEvqGZXW4UqjZiCdi5UfHC ZdmJPuXMNNRySs69x2RAY5X0IvAOd9pvRNpdsoguGcZXjMfY1GwKtxKYYCVKgNYBoChS 6oeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JhGn1Lyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a185-20020a6390c2000000b005af21fd2c7dsi6856842pge.412.2023.10.16.09.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:11:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JhGn1Lyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 6BB4F80239F0; Mon, 16 Oct 2023 09:10:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233869AbjJPQKl (ORCPT <rfc822;hjfbswb@gmail.com> + 18 others); Mon, 16 Oct 2023 12:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233737AbjJPQKd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Oct 2023 12:10:33 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BE46FF; Mon, 16 Oct 2023 09:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697472632; x=1729008632; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CCalplfZS+ACuqT2hqG7Ibb2XR+tCJlozM7ZHTv3bHw=; b=JhGn1LyfunZ/wca0dwSmDDen57X1DmjedFlLs7cOs/Gd+MFh0QZnjGXO D+wvGqdNr6FHpCGj8w2d8Yh4B2pERtWdxPMwRRZU0lv4dbMdCXu36T7jc YJacfUCM7xLYuDFo++im30hfm4umwxA8AK+Qd75tul90Hhel5eZt51Xzg C1piMhyBQxpk9I6JsZVmVYlT7jQiJoh7d1DA+AOohiNmbKetWIwe/hfdn xp3Ge7XRZk4U/3PV2nDt0927Syz/vsodZ7tTzMNu1PugEUQ8DBVEN5l9K G06srvU/FjFHyLHTkQN4+JX63JuQyfCmxFzcRSh/ShIEaFBkhd6q1a3AC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="7132787" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="7132787" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 09:10:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="785123040" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="785123040" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 16 Oct 2023 09:10:10 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 36C5995B; Mon, 16 Oct 2023 19:10:09 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.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 5/6] leds: gpio: Remove unneeded assignment Date: Mon, 16 Oct 2023 19:10:04 +0300 Message-Id: <20231016161005.1471768-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231016161005.1471768-1-andriy.shevchenko@linux.intel.com> References: <20231016161005.1471768-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 09:10:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779929115773953100 X-GMAIL-MSGID: 1779929115773953100 |
Series |
[v1,1/6] leds: gpio: Keep driver firmware interface agnostic
|
|
Commit Message
Andy Shevchenko
Oct. 16, 2023, 4:10 p.m. UTC
The initial ret is not used anywhere, drop the unneeded assignment.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/leds/leds-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index fd3f90f95fa2..d6e8298ffb3e 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -255,7 +255,7 @@ static int gpio_led_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct gpio_led_platform_data *pdata = dev_get_platdata(dev); struct gpio_leds_priv *priv; - int i, ret = 0; + int i, ret; if (pdata && pdata->num_leds) { priv = devm_kzalloc(dev, struct_size(priv, leds, pdata->num_leds), GFP_KERNEL);