Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp310539pxj; Fri, 28 May 2021 04:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHt2jrvXTiQPrxdPTC0th3X5FjRTDhwqiGQbgXwrpMIpU5fBAOJUEdaSQPE57S+djsI1VD X-Received: by 2002:aa7:d7d1:: with SMTP id e17mr7676680eds.339.1622202061350; Fri, 28 May 2021 04:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622202061; cv=none; d=google.com; s=arc-20160816; b=U9M6AONEf1MRAaup/akFRsjhZM2C79J/Nzaq0riQPk1gMRGNtZSZms+7sIg4X5gjl3 pPiP46j9jp3swNigENj6XdS/nQHg2iCCB3LMpD6QgV5h90ywNNcme4f6YtMUXPfn+fcq r8wIvl+Stqeyo53IZgYMpI6e7FbM2Dzdk5j9ihgLAUmoi+e7XSwJ2JuFMvcWpiSngPX1 VhAHDFYYx1V4ihEoIZYS3tQNIF8KXHwnLcotpQ5h9EmbP7Q27ndYA7MEBzCa2Iw2bhxe 3pSjcYIFjahb68L6VjEWjKiZggsX3PTAPULTouJXOhAhBhEXfRiP6sEoBtj3hx2z5bhT M6MQ== 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=O+f864LGvURQSeroBuuxgBe/TOHz+dhRDDdewVQSqGw=; b=mYbnMU319PQVlh9UKVIype4BJxLrdxIPQfWkvaMMcpe4/bEvKgbsmIX7Dvsl2P6Hfx EynJ4tfzV5s9GDBqWLKI5RMgtKx+XFXT/leNop3E3aHCQTLWRseRREiQYbPDxZSzs/En 3bd8df9S/vqHyHLGMKHQZQZoVK07YEqDaPv1x0UK4ZCPGt9nXb7jj56RJuWrdzHQQe4Q B3brr2j1r+Lagphx6uqbHwH3wZoNCqYel42VprylUEax5T9ex2YK5pPOXwAYnkQbMTBQ 5pusU9VTAWctdTTOc47OCUIJAXu/RVQe/xzEn4zkbgnkfZ3vojNkjqg6M/dqQkGikYzC eyAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IRUgGQMu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl18si4516980ejb.412.2021.05.28.04.40.36; Fri, 28 May 2021 04:41:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=IRUgGQMu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236525AbhE1JIr (ORCPT + 99 others); Fri, 28 May 2021 05:08:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236571AbhE1JIQ (ORCPT ); Fri, 28 May 2021 05:08:16 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5DFC061347 for ; Fri, 28 May 2021 02:06:39 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id l18-20020a1c79120000b0290181c444b2d0so1948140wme.5 for ; Fri, 28 May 2021 02:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O+f864LGvURQSeroBuuxgBe/TOHz+dhRDDdewVQSqGw=; b=IRUgGQMuE35gabK+9D3iSckXRcFnziOwB3UBmxCujDK2rnq35LY4NEalWzCpf53BQQ 7zvMHb61lSK3ANth9tEPXif/8oN6PHAvqUbvqQQh66wWcdjBWtKvwkHUx6STQZ+DBmYs ex9Pl+kgJ87rrBGsIN00gWjJrhFdCJeOiEWvyFKqRAfyTHHFcenwMIs6+CQImG+1V/0l cLGpoNcBpNZM21oSFFYk3ygS2wy8/5D98+YEh1Nm79I4a/AgxWjvdrM5T8p3GAwBchE+ i+AyQFoYRFrPsiUxzOAg+4mC2mhq3psKhakJgOnW+Qz68bGPgNuYXU5XI79QPA5SCbRZ Y9vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O+f864LGvURQSeroBuuxgBe/TOHz+dhRDDdewVQSqGw=; b=hnkM1OEYi6oEl/HP0SU7zO8uUTr1ZnzJbWgT+KjsPFGXF6Gdr7XY1VS1WoM63VKvkW oCfFyeewRDkmiPGgXvkGSWv75eVj0TIT/1B+oCqhGoQ/mu2dmIqqAlwWMtvznPaw2+as lW3/8W446DUy93vHs+K1YvZSqHLtrUDocBk4A+auRKsneEQsjxiYmZC0cakVLHF6dLFo 5nxeb0tmGZmMG6PBizxqJvGxh3xToXtSPbenQ6knEPqbKlSQwYCqIhXTX5vija7hop6j zQWFdyIsBwi9qG+a9Ar6LMtV92zKBFp8y0vXPrRNjXaZtzx3yuohwjchX29WNvzvSY1n bH2A== X-Gm-Message-State: AOAM531R/uhQY+ZljwJzZzPCDQ9D6/0ehNMZgi1kofzMlJ/FWHpjukc6 9d8vJs+c8HC1KuRS4jgaTNYepg== X-Received: by 2002:a1c:7c03:: with SMTP id x3mr7497930wmc.122.1622192798448; Fri, 28 May 2021 02:06:38 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id m132sm6105911wmf.11.2021.05.28.02.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 02:06:37 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Jan-Simon Moeller , Pavel Machek , =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= , linux-leds@vger.kernel.org Subject: [PATCH 06/15] leds: leds-blinkm: Remove unused variable 'ret' Date: Fri, 28 May 2021 10:06:20 +0100 Message-Id: <20210528090629.1800173-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210528090629.1800173-1-lee.jones@linaro.org> References: <20210528090629.1800173-1-lee.jones@linaro.org> 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 Function returns void anyway. Fixes the following W=1 kernel build warning(s): drivers/leds/leds-blinkm.c: In function ‘blinkm_init_hw’: drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Jan-Simon Moeller Cc: Pavel Machek Cc: "Jan-Simon Möller" Cc: linux-leds@vger.kernel.org Signed-off-by: Lee Jones --- 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 b4e1fdff4186a..bd7d0d5cf3b62 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) -- 2.31.1