Received: by 10.223.164.202 with SMTP id h10csp112407wrb; Mon, 6 Nov 2017 03:37:12 -0800 (PST) X-Google-Smtp-Source: ABhQp+QKaS+7vVyW2uLXBzPwEvK/NohGN8ARqe7M78na3mf6cvEnJn7e3lQ67qikDYBdRROaBK2I X-Received: by 10.101.93.77 with SMTP id e13mr15113015pgt.431.1509968232134; Mon, 06 Nov 2017 03:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509968232; cv=none; d=google.com; s=arc-20160816; b=lrTJHXgmq0Bs6iOhVfdR/zrJ5kEzppP6bc4YZ8tI0M4S8WJiG19g9vuL+cHNEpcNzZ Oe4V5LrnC6UrY3gjILdd9cddWL9lyKWyMvZrPAvTf9nhRopHyjTAHaFvnZ/Xhnblrn1N x7TOIvlJAtbV/YzfjelvvxwLxsbQ3OFZb7uED4+xmeI2rqu07e9S5cYV2RPqoUf4Ngk9 rVN4bjm1yO+9YF7CGPiYaJxUwdXxKDfm80cVSzQ/PykM8ahVDXf65gvz9e82AiS69m92 WDmQYuwNYO3rkFTo+4v38onVd6s/AaIVlna03S+MPyp7JsjTzX5a7iKUFCn8cP7x/pQc vFbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=YuDN6L32uoL5ycozGB4AAl5FUUhIu/EuVpe0mYB3emQ=; b=Gpd+86UIt8hcEgRP40n3oZVhlHHoweSAcoIVFEaG7OcgR+qCJwGsL+cusWaewlR/7O wq9hixIgRGbt6j9MolHG8OU3e8cMyuz4oNlYZ1JJ480hSaltNlfdVG9MQn2cvT6NFxaD X7Svys9xYvZJb2LxIM+d1/yIbM4MzgPipL8lXAzlB8JvuRx9w1rEQXotm95oBzjEGUzt 6JEEUAwz7WBEbohKd4tU9JQOYoD6EHPmkR+n/TL9PSYDrJYgf8EKL3lZanbCBalhQFNj xB4DCPexkk4a4BA9cg5wyypL5xhA/TvwsEUK0EBru3qTywzVLOdk0QNKC2D5g7T+bXj0 a0Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HS11Tn1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z1si11386792pgn.381.2017.11.06.03.36.58; Mon, 06 Nov 2017 03:37:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HS11Tn1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752667AbdKFLgK (ORCPT + 99 others); Mon, 6 Nov 2017 06:36:10 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:46440 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752371AbdKFLgH (ORCPT ); Mon, 6 Nov 2017 06:36:07 -0500 Received: by mail-wm0-f67.google.com with SMTP id r68so13141206wmr.1 for ; Mon, 06 Nov 2017 03:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YuDN6L32uoL5ycozGB4AAl5FUUhIu/EuVpe0mYB3emQ=; b=HS11Tn1lgSEyyXlxD76Yat5Q1WdWPORtj1UG/AJhoPMsGNiMnIvlnjPL/TT6WskBeH 2yta+zSjaNZEoyyixdtEI04aSYMGv5iOPZnfNe38RgtnLku0foTZoqKd/oGCdT13H3QE DHIyjLJ54UiMmLoutHAz945KK3EfURjSamoIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YuDN6L32uoL5ycozGB4AAl5FUUhIu/EuVpe0mYB3emQ=; b=folHiGrE2Ke0+zW8puAysppDUn8H4C9WxYeYR9UzA06FzyuOYX1I8yrMGuFFCAt4rv DeTT1ETtPKqE7qa115Pl0O2AoAwZ4qHosmRhwVBN+K85uJr2MQr7LC9ozH0fxnAAZdMC TB1CSn3FnANt8z/FYvW/mCxy9wuMOM3/CPwpxaloEX9yvamSwNEwTL4Sufs5Tz+Eq3rm T/RcKpZ98PjNZmAvmja/NSloA2sKjFYGjk3H8NNisj7PcXw1jGDMORZ26cR3Q0Et4tcq YfXpfrXI1quVVEUANBP/INjcpCJO4QssJq7pqmnCY5jWIebJCsrRCVHkuJRkgolLaMbT Suiw== X-Gm-Message-State: AMCzsaWlEvxpqhWX1Ty8kz0RoA5wvV73+WKQNN8E1sD04SiMPeaQ30Qr SrCHwYeiXvqCiLkn1ryc0rbUaltXcdY= X-Received: by 10.80.185.68 with SMTP id m62mr20178207ede.239.1509968166462; Mon, 06 Nov 2017 03:36:06 -0800 (PST) Received: from [192.168.1.191] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.googlemail.com with ESMTPSA id d30sm12070189ede.10.2017.11.06.03.36.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 03:36:05 -0800 (PST) Subject: Re: [PATCH] backlight: ili922x: remove redundant variable len To: Colin King , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171105115326.5276-1-colin.king@canonical.com> From: Daniel Thompson Message-ID: Date: Mon, 6 Nov 2017 11:36:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171105115326.5276-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/17 11:53, Colin King wrote: > From: Colin Ian King > > The variable len is assigned but never read, therefore it is redundant > and can be removed. Cleans up clang warning: > > drivers/video/backlight/ili922x.c:276:2: warning: Value stored to 'len' > is never read > > Signed-off-by: Colin Ian King Acked-by: Daniel Thompson > --- > drivers/video/backlight/ili922x.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c > index a9e9cef..2b6c6aa 100644 > --- a/drivers/video/backlight/ili922x.c > +++ b/drivers/video/backlight/ili922x.c > @@ -251,7 +251,7 @@ static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) > struct spi_transfer xfer_regindex, xfer_regvalue; > unsigned char tbuf[CMD_BUFSIZE]; > unsigned char rbuf[CMD_BUFSIZE]; > - int ret, len = 0; > + int ret; > > memset(&xfer_regindex, 0, sizeof(struct spi_transfer)); > memset(&xfer_regvalue, 0, sizeof(struct spi_transfer)); > @@ -273,7 +273,6 @@ static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) > ret = spi_sync(spi, &msg); > > spi_message_init(&msg); > - len = 0; > tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, > START_RW_WRITE)); > tbuf[1] = set_tx_byte((value & 0xFF00) >> 8); > From 1583247710714476803@xxx Sun Nov 05 17:24:38 +0000 2017 X-GM-THRID: 1583226962883469837 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread