Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1681101pxj; Wed, 19 May 2021 11:19:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrm60zdy2jKOec0ozLPkMuah5G1jjPAHeSuZty4d1e2Iq1L8yjeatiBCbIRpnpsOq3BlHS X-Received: by 2002:aa7:db57:: with SMTP id n23mr354288edt.229.1621448386306; Wed, 19 May 2021 11:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448386; cv=none; d=google.com; s=arc-20160816; b=TDwTpmerA5PDGWNzMuZf7VM8cSznKRXOC5B226jvMt/Zf4hraLUJmwSp/lup4Yl1xq Su/rV8fAR0r7UKLzE2+0tMxB/RXmiNh3B8CgA46RRwNAMjdh79asyy0mzm8erg2BVqYd pFMMFKUZFoXt/w1o2QnZuhoVJf/hXaPifYH/y1IZGMExdZMuWFS+y8eFCfnYvJRpgXdv rQ7Sfrk8gDLZstrjIRSOxu2Oajtkr4gm9XhvuRqyCEJfhuSa/W7yJFpJmPwfwDhPP+P6 iz/fJeKqKvHAVR9mlH0Y7/Y0CTvxO4l2QSkU+Dmj79kaHnDbqO6IgMV7Mk/iF51X+t6O junw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=mMMBL04VPH9rfD8kBQfDQ04YclNJc04HeYvCzF2x7K0=; b=ARXxXmmKzAwJyEqUM1L4jn1uiEFiMRG37HEv0hi1q5Oa0yu1UfLNRZP1enga6XOdmR nU5sYxlF1W9fD+i4HRoogcy49koxdhlPma3pqYBKqCX2UAgJ3dXM+dGNLsXDdXoKqNtC De/4o4H5MjbkXdJR3LH2ieVeQbrsqUskkwMK0bQ4n/ID4V5LN23fZ/bL5G9M5Ih9wfbb E+XOendwEF78xip4fgqXLIXu/uQPju+TfqJoCtwT1zLYnQco3EFJMpjOVn6OUfIyUU0Q xgJGElN35jQKL1ZB9M6kN/B3/kw5R8Rfix0rE1qC5jxJePDc8cUlpiRcpbvNavhBq6bR +tdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=Zvq7IFzz; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si296571eje.665.2021.05.19.11.19.22; Wed, 19 May 2021 11:19:46 -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=fail header.i=@kernel.org header.s=k20201202 header.b=Zvq7IFzz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350033AbhERPLM (ORCPT + 99 others); Tue, 18 May 2021 11:11:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:49438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243464AbhERPK2 (ORCPT ); Tue, 18 May 2021 11:10:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F25B61360; Tue, 18 May 2021 15:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621350550; bh=cG8d0SVSR9AemukQMBOciLYjz3JmBKqR6Q8YNsgQ+pU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zvq7IFzz55ZAepPag+foeRSI7S5lyllxIhf8LpyXdETrQPhxigTqxrJBqSRxBdxZH 8yeDHst5qwEsgWkPSA6BrkwbrBL+RDI3k77senxvQatiiFjyUxlqA5mebVJFPP/l+r V/O+yy3b5SydNKoTA+n9MiWc3emFhaEBWNXNV6+hr7Tu4JufH85crllbgsv2DzflFX Fa77tXvxAuSS39E9ReBg6JzdqrgVxgWJHvKYJwptO9XLLt9A8g2xtHGdR6lCd7cfew hJ7dfz2G6PsL6uAy50fiBh2Wnf+Gkz47dJWw/EV/3QQe2C1LMiPitsHEvsc9a04fVZ ZNfRq8+SljN4g== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lj1LI-007HOc-FK; Tue, 18 May 2021 17:09:08 +0200 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Pavel Machek , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v2 11/17] leds: leds-nuc: get rid of an unused variable Date: Tue, 18 May 2021 17:09:00 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/staging/nuc-led/nuc-wmi.c: In function ‘nuc_nmi_cmd’: drivers/staging/nuc-led/nuc-wmi.c:242:6: warning: variable ‘size’ set but not used [-Wunused-but-set-variable] 242 | int size, ret; | ^~~~ Signed-off-by: Mauro Carvalho Chehab --- drivers/leds/leds-nuc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/leds/leds-nuc.c b/drivers/leds/leds-nuc.c index a5eb625d7b51..e2517e1a367f 100644 --- a/drivers/leds/leds-nuc.c +++ b/drivers/leds/leds-nuc.c @@ -239,7 +239,7 @@ static int nuc_nmi_cmd(struct device *dev, struct acpi_buffer input; union acpi_object *obj; acpi_status status; - int size, ret; + int ret; u8 *p; input.length = NUM_INPUT_ARGS; @@ -281,8 +281,6 @@ static int nuc_nmi_cmd(struct device *dev, goto err; } - size = NUM_OUTPUT_ARGS + 1; - if (output_args) { memcpy(output_args, p + 1, NUM_OUTPUT_ARGS); -- 2.31.1