Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3415838pxb; Wed, 14 Apr 2021 05:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoN+d0XZAWrpPgc/O7tMQrMa120PFJCsmKmCb26zS+oOnCQlUhjH/SW2uM0rP2GfBqr0HO X-Received: by 2002:a05:6402:46:: with SMTP id f6mr40995480edu.252.1618402395472; Wed, 14 Apr 2021 05:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618402395; cv=none; d=google.com; s=arc-20160816; b=SchIotatTGlt/Bb38JcBADSema4/MEGwkz7twDDwxgq0ZWuScPGKINq8pcXKo5xl4J DLbDLod66iTa6j80+ubyPd0l3E3RE6JfQ01B/sqTXyUjzoZL4/I2HrfC5Kt2UNAG/tBV KGZ5FlY9UQheeA0x+VeB8puW8MpWJyU8+QECicatar1Qwy3pg8PaCChpxVHI4vFSX7kY ksMdS2n88T64BUHsVtfuinFaG/Pf5x9WmmSct2XcHb528+4PmxjvSI5BXZfLZS97E6IM W73uPxQoPjJkJeP2MAPMknC/9JQvzccWRcqDiLyfpgGWbPd8KkGZ7DHQ6rr7fh9QePih aJqw== 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=phU7iyXgUtkeGftuL4+HshiqLyhm0MgWQe2Nay58mtI=; b=blcvYkZxEvFg5174L0sUaQWmTySOSDYBBz+7yXaG3npVYZ0Laxo/IDmWvO1J8AiLHH lc77h8y/ISvzUorXBaWgvJXHpvDRY+ihrtKxOEcFcc/z27exUJsIdaFtac/FQxkxuKDs zMpeVi03iYCP0V9yhI/QTKq5NVeCNfn1WAresxK/fTHztjUz8H1rk+QcszX0Is9WLYO6 kh1ht6pAxlfANwVGCVx4IvPiup71QpsRhjaI9ZgP3t77KsAf/Bm9EEhdF4TKDLg8nyat TmetZhBhvVpk/SA6MTmP9hnT5fe1mATLcrqX27H9MMLo6rKhwVISCiBX67AzXTH7KGjU MRmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb9si11426933ejc.673.2021.04.14.05.12.42; Wed, 14 Apr 2021 05:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1345944AbhDNClP (ORCPT + 99 others); Tue, 13 Apr 2021 22:41:15 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:43685 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbhDNClO (ORCPT ); Tue, 13 Apr 2021 22:41:14 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVVa-W1_1618368044; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVVa-W1_1618368044) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 10:40:53 +0800 From: Jiapeng Chong To: jansimon.moeller@gmx.de Cc: pavel@ucw.cz, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] leds: blinkm: remove unused variable Date: Wed, 14 Apr 2021 10:40:42 +0800 Message-Id: <1618368042-107692-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/leds/leds-blinkm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c index b4e1fdf..bd7d0d5 100644 --- a/drivers/leds/leds-blinkm.c +++ b/drivers/leds/leds-blinkm.c @@ -480,9 +480,8 @@ static int blinkm_led_blue_set(struct led_classdev *led_cdev, static void blinkm_init_hw(struct i2c_client *client) { - int ret; - ret = blinkm_transfer_hw(client, BLM_STOP_SCRIPT); - ret = blinkm_transfer_hw(client, BLM_GO_RGB); + blinkm_transfer_hw(client, BLM_STOP_SCRIPT); + blinkm_transfer_hw(client, BLM_GO_RGB); } static int blinkm_test_run(struct i2c_client *client) -- 1.8.3.1