Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp434613ybh; Sat, 18 Jul 2020 08:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrOrrfn5S3AVQN46er/Ilno5iQN3sBfQI3uPtN6VMg3vWIDsWnSia8Ifnh0Nypef4ol6/+ X-Received: by 2002:a17:906:1499:: with SMTP id x25mr13069338ejc.406.1595086319463; Sat, 18 Jul 2020 08:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595086319; cv=none; d=google.com; s=arc-20160816; b=nwzeHax8ai2yhiNCsgOKI35gY6Vyx1zCBrtcPxrDBU1IUpZTAYTlYDuSRoJZdiu/9U L4i7LWZE5jw1eg3O/oC6fxzSQ17H9wh4D6sF5fCDnIHKE7BJRWi/rrGws0Dn17Qf/wct EZPvbzT/+vB0ycEoTU7AJLTGb2nkDAzeaW8iRdc1lfXyDQtg/xKz/u0UDQ3dU/jTPPk7 WKuIOEzpEpE4OhCqLaULXzJcVYduD3CmGqMhKs2Gn88GBviY7c/lean9Y+dDeXPMJ4Yh /u/Asnsmcu5Pp41ObEHah3sERy0dHwpf3CgFYgzlV7Dz/91TS/3NgPAsYYfs5MOLZosg DEUg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oW2VY4X5rtciHZXMvCyMtb3x71DKWp0HwV5PyL81UMo=; b=hCy3/mgbX4nz055Es+idVbN4yolcq5f1/eb8j4fckUBdiyp9J2GEXFQhKfXmOhOLfQ KS8wlTUniU3JP+XptJ5xpu/HrhjtKxqwW1Ngo8ovEoZO6BbLnsVquer/VZAJ6L3RxGJV IGjAcdxp0FBwJfW3L5iNuKkHfAVcsc3QkZG3RatTf/dhjWoeR3btyS0rMxYYxQ7BsxBP wjeI3Y2N/AWIX/yY9miliK9PhZigIJae2AiuBRp+KYVHO9JiJwJRQjbxeVdjQz9CtORD D2TbWTW5DW1WSGKZnGemdX57vtMGL+6euni7RD+j1Xokp0fZ3nYD7tzHVv7Cf/PC+lSO tp6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fMTm3kuu; 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 z3si7214442ejc.547.2020.07.18.08.31.37; Sat, 18 Jul 2020 08:31:59 -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=@kernel.org header.s=default header.b=fMTm3kuu; 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 S1728068AbgGRPbD (ORCPT + 99 others); Sat, 18 Jul 2020 11:31:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:41266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgGRPbD (ORCPT ); Sat, 18 Jul 2020 11:31:03 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44A7C2076A; Sat, 18 Jul 2020 15:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595086262; bh=1wuiIPUiXSmhjJ5LdQ20PRNh28jticm8GjYJ/lQO3C4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fMTm3kuucoTH3NtXiv5VTUCkKBXs3MWRPXJRPJw3UaljOi4yp7wXS33ggotopxQ/L p1RM113L0ROPs434YgDq8uwqjNSnRZWjCyVrDLbeVBRefDpZOvwirW5r8ExBsnfcuq GbDHpRL2WUUkfzVz1lLDYKMlJ3Yooe/bYh06IaH4= Date: Sat, 18 Jul 2020 16:30:58 +0100 From: Jonathan Cameron To: Lee Jones Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Rachna Patil Subject: Re: [PATCH 01/30] iio: adc: ti_am335x_adc: Remove a couple of unused 'read' variables Message-ID: <20200718163058.672b6362@archlinux> In-Reply-To: <20200717165538.3275050-2-lee.jones@linaro.org> References: <20200717165538.3275050-1-lee.jones@linaro.org> <20200717165538.3275050-2-lee.jones@linaro.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Jul 2020 17:55:09 +0100 Lee Jones wrote: > Fixes the following W=3D1 kernel build warning(s): >=20 > drivers/iio/adc/ti_am335x_adc.c: In function =E2=80=98tiadc_buffer_preen= able=E2=80=99: > drivers/iio/adc/ti_am335x_adc.c:297:21: warning: variable =E2=80=98read= =E2=80=99 set but not used [-Wunused-but-set-variable] > 297 | int i, fifo1count, read; > | ^~~~ > drivers/iio/adc/ti_am335x_adc.c: In function =E2=80=98tiadc_buffer_predi= sable=E2=80=99: > drivers/iio/adc/ti_am335x_adc.c:346:21: warning: variable =E2=80=98read= =E2=80=99 set but not used [-Wunused-but-set-variable] > 346 | int fifo1count, i, read; > | ^~~~ >=20 > Cc: Rachna Patil > Signed-off-by: Lee Jones Applied to the togreg branch of iio.git which will get pushed out as testin= g for the autobuilders to poke at these changes. Still time or anyone one else to comment. I'm picking these up as they are all noops and appear straight forward. Thanks, Jonathan > --- > drivers/iio/adc/ti_am335x_adc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_= adc.c > index 9d984f2a8ba74..93b67bb165044 100644 > --- a/drivers/iio/adc/ti_am335x_adc.c > +++ b/drivers/iio/adc/ti_am335x_adc.c > @@ -294,7 +294,7 @@ static int tiadc_start_dma(struct iio_dev *indio_dev) > static int tiadc_buffer_preenable(struct iio_dev *indio_dev) > { > struct tiadc_device *adc_dev =3D iio_priv(indio_dev); > - int i, fifo1count, read; > + int i, fifo1count; > =20 > tiadc_writel(adc_dev, REG_IRQCLR, (IRQENB_FIFO1THRES | > IRQENB_FIFO1OVRRUN | > @@ -303,7 +303,7 @@ static int tiadc_buffer_preenable(struct iio_dev *ind= io_dev) > /* Flush FIFO. Needed in corner cases in simultaneous tsc/adc use */ > fifo1count =3D tiadc_readl(adc_dev, REG_FIFO1CNT); > for (i =3D 0; i < fifo1count; i++) > - read =3D tiadc_readl(adc_dev, REG_FIFO1); > + tiadc_readl(adc_dev, REG_FIFO1); > =20 > return 0; > } > @@ -343,7 +343,7 @@ static int tiadc_buffer_predisable(struct iio_dev *in= dio_dev) > { > struct tiadc_device *adc_dev =3D iio_priv(indio_dev); > struct tiadc_dma *dma =3D &adc_dev->dma; > - int fifo1count, i, read; > + int fifo1count, i; > =20 > tiadc_writel(adc_dev, REG_IRQCLR, (IRQENB_FIFO1THRES | > IRQENB_FIFO1OVRRUN | IRQENB_FIFO1UNDRFLW)); > @@ -358,7 +358,7 @@ static int tiadc_buffer_predisable(struct iio_dev *in= dio_dev) > /* Flush FIFO of leftover data in the time it takes to disable adc */ > fifo1count =3D tiadc_readl(adc_dev, REG_FIFO1CNT); > for (i =3D 0; i < fifo1count; i++) > - read =3D tiadc_readl(adc_dev, REG_FIFO1); > + tiadc_readl(adc_dev, REG_FIFO1); > =20 > return 0; > }