From patchwork Wed May 19 12:41:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 442397 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1284845jac; Wed, 19 May 2021 05:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBUpFYoL8xE81XkV7VT+5BuiY+7/tIkbgvA/Qg1Fzl/GxhZU4nfBDtOR6M3sgJONclfACd X-Received: by 2002:a05:6e02:168f:: with SMTP id f15mr11664926ila.264.1621428202214; Wed, 19 May 2021 05:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621428202; cv=none; d=google.com; s=arc-20160816; b=kBxrTyCXbDPa1v8LSqPurpxog0wLrXGucUbrx9GHn7SD3Sq4aer7Zs2k5JaPqTook1 hPYiBPyltHACzDe+V+ZccPImmdHnrZXMLghY0U3VlxD2xTlHr+1AVKhBaRnMW606FCW3 fmjTFRM9R7tZrOKkduPzBjfiCaFZDncdYKTiFDXaZKlHaNnEgsm65u/kwAFJjNNRLVTC WMNC6kR6JtLbFEf8awwCjUGF5v65YNAMilloBUm6xhitu1PoOHZX/CobToHmcH259mp4 gmjX+ghNUrS+gZ+TEU/Tx0rzbi8e3NJlFlbQ3ZQAWwzRmw24nm2tiLVNxjk+bAZFv8P+ y85A== 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=JByDhyNBn19M6fyVFWlGC1GG3TCK/cjmb2wY+l+9pFU=; b=qBhKGNYhmAphJcK0Iz0kHzCs4j3tnfye7eev9mUJ8JzfqbDBzXneFOUoTEfQSwxz8d SmHTTUboeNPA71DQPG/Tn23IZFnYo3CXh2JwjC59f/pTA4ToWMFayGKDitI1nWhFBX5y a9o98u7PBzTfXfphRo+4advGbHQFMpWj1RDkr5iwqbkwyswO1bebgDAcqu63IQVIUfUG eu1gespmVvxnGMc4ub3PEbkPj3vODcwyX1PqZkh1MROM3+27Lzo/FuIYGCftOzOQc1l+ 5cTfBG9QZLa3A5fbqAf9dmrQ7HjLronNs1ysI9KIOVUlKKzGlwvPjOj99ovKaUS9a7Z8 Cjpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si27227471jas.16.2021.05.19.05.43.22 for ; Wed, 19 May 2021 05:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-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-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243022AbhESMol (ORCPT ); Wed, 19 May 2021 08:44:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4534 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238150AbhESMok (ORCPT ); Wed, 19 May 2021 08:44:40 -0400 Received: from dggems701-chm.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FlXXK5SLgzsSYk for ; Wed, 19 May 2021 20:40:33 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggems701-chm.china.huawei.com (10.3.19.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 20:43:19 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 20:43:19 +0800 From: Zhen Lei To: Jan-Simon Moeller , Pavel Machek , linux-leds CC: Zhen Lei Subject: [PATCH 1/1] leds: blinkm: remove unused variable 'ret' in blinkm_init_hw() Date: Wed, 19 May 2021 20:41:36 +0800 Message-ID: <20210519124136.7938-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org GCC reports the following warning with W=1: drivers/leds/leds-blinkm.c:483:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 483 | int ret; | ^~~ This variable is not used, remove it to fix the warning. Reported-by: Hulk Robot Signed-off-by: Zhen Lei --- drivers/leds/leds-blinkm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c index b4e1fdff4186..e34879b4c275 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); + (void)blinkm_transfer_hw(client, BLM_STOP_SCRIPT); + (void)blinkm_transfer_hw(client, BLM_GO_RGB); } static int blinkm_test_run(struct i2c_client *client)