Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2021185pxu; Sun, 13 Dec 2020 10:50:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmuCOiPk0X9NBqd4GeqwKGZ4zor5CJygzCWWGJSjjRL2QGBUIWVqg1lWXIDiFTUT3h33k5 X-Received: by 2002:aa7:cc15:: with SMTP id q21mr17437408edt.213.1607885407477; Sun, 13 Dec 2020 10:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607885407; cv=none; d=google.com; s=arc-20160816; b=wLYEcXkdl+Y1NH1gKMh/kBDWohQJ88zdOvkeAyoJJUrSBjNnmXY+nEnEyLc/rltyyZ QFcFPuso/9l0+aXSPZqU83rtPyauZ6nEsnwV+SPGoNGLukMiHIKdo5aU67VYKh3t5Xmr ZVd1wLNYnev/d1dHQngbJoqpn3BZiZnPd3OTyXDhISqE7hDdnfDPqfS25ZUsQCmAMzTQ PatpPBMgR9G6r1d/jt4fSVVRpG58kU6qit60Gquv/Rz3PqSgs2C9Ce3MIcmB49iFeGA8 vw0bYE31eysi+9B8gu71Ztkuo5EjHFIom7W6pVj5VrfA8DOS8+tus8aZplZPXbSIPATN z96Q== 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:subject:cc:to:from:date; bh=zR8R8whSz3Mk66iNs5tK65iklGdfYAuI8KlEejKkJkE=; b=vPl5Qrz2ip1wTswXH03HDld5WhqW9THBuj7aJnzyez3bqgT72LJqzivX4azfhsQtlx 5bT6Td7wRXvtuhqKUVlnJBw0zLbh4QUv1BklBWrqThVVIP0pwCCac9B/3e9INO6xDvEX sQ0ZXC5ztS//wEvv6XZiYDClLT1+/xNINXZABexrSLV1/t5IpYZeOr3mhcKS2YhXrVfE /xiHWRwD/UNT5G33ONh9aDOl28chnrJv40jqKdYOMl2rTmrc7NaBiRpO9Jqu/WBfGpP6 /abRBc+XPFS5+bI3ffVnF1uBRMt8jbu9g1dngL51ZwCbamC24KFmDU08m+zjW2WAkhrN nG9w== ARC-Authentication-Results: i=1; mx.google.com; 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 by4si8311360ejc.732.2020.12.13.10.49.44; Sun, 13 Dec 2020 10:50:07 -0800 (PST) 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; 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 S1726455AbgLMOTc (ORCPT + 99 others); Sun, 13 Dec 2020 09:19:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:39624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgLMOTb (ORCPT ); Sun, 13 Dec 2020 09:19:31 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 AC5D82253D; Sun, 13 Dec 2020 14:18:50 +0000 (UTC) Date: Sun, 13 Dec 2020 14:18:47 +0000 From: Jonathan Cameron To: Alexandru Ardelean Cc: , Subject: Re: [PATCH] iio: adc: ti_am335x_adc: remove omitted iio_kfifo_free() Message-ID: <20201213141847.049b5abd@archlinux> In-Reply-To: <20201203072650.24128-1-alexandru.ardelean@analog.com> References: <20201203072650.24128-1-alexandru.ardelean@analog.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Dec 2020 09:26:50 +0200 Alexandru Ardelean wrote: > When the conversion was done to use devm_iio_kfifo_allocate(), a call to > iio_kfifo_free() was omitted (to be removed). > This change removes it. > > Fixes: 3c5308058899 ("iio: adc: ti_am335x_adc: alloc kfifo & IRQ via devm_ functions") > Signed-off-by: Alexandru Ardelean applied to the fixes-togreg branch of iio.git and marked for stable. Pull request for this will be sometime soon after rc1. Thanks, Jonathan > --- > > Seems I was doing too many things at once when I wrote this. > > drivers/iio/adc/ti_am335x_adc.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c > index b11c8c47ba2a..e946903b0993 100644 > --- a/drivers/iio/adc/ti_am335x_adc.c > +++ b/drivers/iio/adc/ti_am335x_adc.c > @@ -397,16 +397,12 @@ static int tiadc_iio_buffered_hardware_setup(struct device *dev, > ret = devm_request_threaded_irq(dev, irq, pollfunc_th, pollfunc_bh, > flags, indio_dev->name, indio_dev); > if (ret) > - goto error_kfifo_free; > + return ret; > > indio_dev->setup_ops = setup_ops; > indio_dev->modes |= INDIO_BUFFER_SOFTWARE; > > return 0; > - > -error_kfifo_free: > - iio_kfifo_free(indio_dev->buffer); > - return ret; > } > > static const char * const chan_name_ain[] = {