Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4323537pxb; Sun, 14 Feb 2021 06:34:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzD7UJ9PFdqvjlfx/CXho30Lv2Db3aw6Y8gGfoNPs8pCBYu7J4LNK19Km7/9yeM1o00o0FT X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr11994179ejb.414.1613313247377; Sun, 14 Feb 2021 06:34:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613313247; cv=none; d=google.com; s=arc-20160816; b=BCpcAaeOlerhTtXoZtoFQul2eCedyNzmBvVbnvMr2cKjzJlEah6i000Aj0qqFhi9nU VNE7r45hSOvDEcd+289MqgdW885fMTE+ngiihxS4qTCbLfVixqbXFm1msBZGVK5BI+uA xtZfY1s2PUj9ZYMKRM/H2aY75OLjhTI7/DCR/IxkwXshQ8kVpAycl++W56TJmDDp10xM 1lZfXVINMRAFWKHQI88h+9lyp5R2pH6vpLnPRlEX+wsrWHI8FcSH4qUxHdkNWYNVQgAE NI2kZt9bN5kLfT3yEyYszwE/aZO9ZqKS8m+gq8s2ab1LStHQwt6BNT1e1bmtkwbcFI3A sZCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=fD5sknhXnL9XJWB7YrjOkeFF7e1NHZ9j5Xtj1gjjuPY=; b=hJI/mVc0RbjQyDtk6t81H0ENhysLFYNu4hMTX61MGsS45ixX/1JuVLnYcFRcmZy0u/ 73yo304wfTpaAd+8ucFny+/ff782OhHugEqgUBPbgdeEZZMiqb6X5bt4PFJguHU9WjZf oBhfYPoIFeykmDwmjx0V8vwv8gfFULy5fyXKCd7nCNOBo0ybx0myy6Cw+nRzdnkdHW+F 2UQzLQ2B7l+3MhlYRIR5/AiIZT+E8UxAe7DgwI6L5Eo72Gtrs02PJozHbDDNlW/dwIlj Rp09zxW0Jy75ljWeVUswjn5LZLREhcgUX89EKLt57thfGdOqNVQ19IGxWt26aNhVlU32 D4cw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj16si1692831ejb.114.2021.02.14.06.33.44; Sun, 14 Feb 2021 06:34: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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbhBNOcE (ORCPT + 99 others); Sun, 14 Feb 2021 09:32:04 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:14616 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbhBNOcB (ORCPT ); Sun, 14 Feb 2021 09:32:01 -0500 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11EERu4Y017029; Sun, 14 Feb 2021 09:31:09 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 36pcjaj8d1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 14 Feb 2021 09:31:08 -0500 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 11EEV7pY054469 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Sun, 14 Feb 2021 09:31:07 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Sun, 14 Feb 2021 09:31:06 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Sun, 14 Feb 2021 09:31:06 -0500 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 11EEV2tq027551; Sun, 14 Feb 2021 09:31:04 -0500 From: Alexandru Ardelean To: , CC: , , , , , Alexandru Ardelean Subject: [PATCH 1/5] iio: adc: ti_am335x_adc: remove omitted iio_kfifo_free() Date: Sun, 14 Feb 2021 16:33:09 +0200 Message-ID: <20210214143313.67202-2-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210214143313.67202-1-alexandru.ardelean@analog.com> References: <20210214143313.67202-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-14_04:2021-02-12,2021-02-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 clxscore=1015 phishscore=0 mlxlogscore=906 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102140120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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[] = { -- 2.17.1