Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2605231rdg; Mon, 16 Oct 2023 09:11:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrDT/YFpAyCtjYtgv53zDSMYj6czS/JcOKCDIIgcIKKhwDklMD2OjAErAf1khxwvmigS9j X-Received: by 2002:a05:6a00:13aa:b0:6b5:92d9:ef44 with SMTP id t42-20020a056a0013aa00b006b592d9ef44mr7929790pfg.7.1697472681701; Mon, 16 Oct 2023 09:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697472681; cv=none; d=google.com; s=arc-20160816; b=W9SAWo5sPyYmt23wJDEGFBTV5d+GxneQm+24tpYlGMDfzKLzGsxYMrRET3V0Sp/PXt lgQtS7DLdZO3IatfXJHp7XtcXqEgPVkAu+JPV3MmTJGiSbyrqhPVdFLCY/ciDPiUxCzE 0mxHgxLrRPqeGHsLc2Y/ZkTT0sV1Y1WfprArVj5ig8/pH9s+5rj29yFzjvRDngTiTPbF nK6KwX3d/3f4OlzTRaesAEKNjik9p2thSJVlKVvN2ugOtXfs66YQLwrQeAs8FKVxxXBo L6Pl7SWCa94GUiX/hTokfCoZkTkY1YCRtXJe+MYafgANaKvwBkBs+m+M8iCSc0jDnvJK Nfmw== 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s129-20020a625e87000000b006b6d9e7c0c2si105878pfb.223.2023.10.16.09.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:11:21 -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 B51668023983; Mon, 16 Oct 2023 09:11:01 -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 S233848AbjJPQKj (ORCPT + 99 others); Mon, 16 Oct 2023 12:10:39 -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 ); 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 To: Andy Shevchenko , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pavel Machek , Lee Jones 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: 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:11:02 -0700 (PDT) The initial ret is not used anywhere, drop the unneeded assignment. Signed-off-by: Andy Shevchenko --- 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); -- 2.40.0.1.gaa8946217a0b