Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1039120imu; Wed, 9 Jan 2019 10:28:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN4EZu4h7Er0nrITvuZ1LjvYildSJUSsO/v3z/A+NUP9bjLjqgYJqfsCOHL2pfDRfpIJF/X3 X-Received: by 2002:a63:902:: with SMTP id 2mr6017111pgj.219.1547058533776; Wed, 09 Jan 2019 10:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547058533; cv=none; d=google.com; s=arc-20160816; b=bHQEpv66LELWQeFsm2mrXD6kfniokJSHe+05mqACoXsLEgx0xSL6Zuun/7Yyrsz9sm iAlLdvy+f9TZLxcYriHe0xPxSq+AEw1N594w13Q8TcLWBl4AEUngV3ZF9Sz2bOg1QQ2a SkQ8GOgUPuMMu1KajaMyI57JPbNJ9zlyIwnYFW6RuhJ7Cw/r+7XlGc5s6ThUQkOz79HL taBKC/6rx3XmvFDlC2dTzN7LdetrdOC6ZHOKFPaPbExZbAkQw2+/E3oxQEH5s7GAHCkv uzhdYuMfqJwieB3/mqkaz2vKfualY7DLXeq4ihJhikPOEh0oK2gMw9RxRZXH0x4EKkW1 J2wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BjB/NOC2FuflZ1P8XYWJW9SyoyKs7o/sSm8Ed225Ly4=; b=Zv4qimb/byYVUWYK5/SVA33jqAoSt8QXx5yg+vXKKUa4uROZQ5yk29dFe/+JEr25qc GKSoBjMX3p/8REGxe3OOx2gxTVvkdaywnWc1xc7aaYIhLln8XyDpLZS64tGmUnQjbwsn afY/NkWpimE7blMGRnKDHfOIdtxl3CjNTMLCy6kKHGFi12jGE1RxTkVarUvLa7bVxOaV 0IhDiz/RovMB98QKFRoeU45O78hsh+uXdkwP4rI1ng4AjdTIZwuGkpKKJlKIRmabcWtk adwYIGfjKc1cWQohm7WgNuLoZd1aY5AHi96yCbNXRPjF2Pp7ZJCfHcsAhJbiE+uTPUFR rpSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IxD1sY1x; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l36si32026136plb.433.2019.01.09.10.28.37; Wed, 09 Jan 2019 10:28:53 -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=@kernel.org header.s=default header.b=IxD1sY1x; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727802AbfAISR4 (ORCPT + 99 others); Wed, 9 Jan 2019 13:17:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:53828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfAISRy (ORCPT ); Wed, 9 Jan 2019 13:17:54 -0500 Received: from earth.universe (dyndsl-095-033-009-186.ewe-ip-backbone.de [95.33.9.186]) (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 C50FD20859; Wed, 9 Jan 2019 18:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547057872; bh=313J75pRSdWBx+s0b8l0AI9icPNGOqqYuBfcA0aYkkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IxD1sY1xWGN1Xj1uhaGkjogiFUVrTr+rTdaZlCkVb+QmL2oWJW9xMEbAn2WBmxQKh JXjKYCvdoQ102NFbso0wQl/MRQFbMF0dqaMNCNXLSq+1lsLDDcsai50afnehBrRtUS TcMwM8XaxxBuEDGjFWyrYtXmGtODKfb4jxYnc95o= Received: by earth.universe (Postfix, from userid 1000) id F18763C08E2; Wed, 9 Jan 2019 19:17:50 +0100 (CET) Date: Wed, 9 Jan 2019 19:17:50 +0100 From: Sebastian Reichel To: Pavel Machek Cc: Mauro Carvalho Chehab , Marcel Holtmann , Tony Lindgren , Rob Herring , Greg Kroah-Hartman , linux-bluetooth@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/14] media: wl128x-radio: simplify fmc_prepare/fmc_release Message-ID: <20190109181750.lqcm2bhg4wubuavu@earth.universe> References: <20181221011752.25627-1-sre@kernel.org> <20181221011752.25627-11-sre@kernel.org> <20181222192934.GA15237@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="a7a3feumpr3jovsz" Content-Disposition: inline In-Reply-To: <20181222192934.GA15237@amd> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --a7a3feumpr3jovsz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Pavel, On Sat, Dec 22, 2018 at 08:29:34PM +0100, Pavel Machek wrote: > On Fri 2018-12-21 02:17:48, Sebastian Reichel wrote: > > From: Sebastian Reichel > >=20 > > Remove unused return code from fmc_prepare() and fmc_release() to > > simplify the code a bit. >=20 >=20 > > /* > > * This function will be called from FM V4L2 release function. > > * Unregister from ST driver. > > */ > > -int fmc_release(struct fmdev *fmdev) > > +void fmc_release(struct fmdev *fmdev) > > { > > static struct st_proto_s fm_st_proto; > > int ret; > > =20 > > if (!test_bit(FM_CORE_READY, &fmdev->flag)) { > > fmdbg("FM Core is already down\n"); > > - return 0; > > + return; > > } > > /* Service pending read */ > > wake_up_interruptible(&fmdev->rx.rds.read_queue); > > @@ -1611,7 +1606,6 @@ int fmc_release(struct fmdev *fmdev) > > fmdbg("Successfully unregistered from ST\n"); > > =20 > > clear_bit(FM_CORE_READY, &fmdev->flag); > > - return ret; > > } >=20 >=20 > You probably leave unused variable (ret) here. I guess that's okay as > you remove it later in the series...? It's still being used after this patch (but indeed removed in a later patch). > Also... I'd kind of expect _prepare routine to return int. Even if it > currently does not do anything that could return error, I'd kind of > expect allocations being done there... well the driver is basically feature complete and all allocations happen in probe :) -- Sebastian --a7a3feumpr3jovsz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlw2Os4ACgkQ2O7X88g7 +pqZzg//bTzS3nZUi6Vb7quyzAZCP2Af55tTDRC/h7KzMPLcFFYdQi6m6lg3rUir gKRmQ7u+2a6CjclVTLAHfYUZ5au2MzUkhkoxcUPqVp6WJJDxCvnFHfyHBGoCVUXf 5TGCOOF89GtohkSGoONEIYQZXIy+MAOTGpvmCIHkbIKWQ37BT1mxqsoAYGEQ51wb 8qgQ0/hfhudtEqiP5qFQyxHJT3G3IXPuBQoBL/T/MZzkGP+XdL0KusXE4FNKUkgS Ex8cvUsu88t1VKxQyLmi8UDPpLS4kG8dybC2lX9NZUcvupZgD8/YXK7XtrmKAQbB NLFpAuIqvU5vsYRAuEGqMY5UxoLvdfVpNX4WhXk775bwuDJgwCWjusEyG7eBOx3A 1+Pv/K0ABOHe9bvc9uGpVjXQM5mmlLrBDxYfSGr14MW6ydc7MKqsY+M7aQl1yz2H dYWAXVOaQY/vcFib8x6Ef2rPEbGTh1y8AaOm2rOTYP5NtWW/Z2b7UY8Egwbg/c7p rcmlYTgEW1M+suekjnJlHk9LErLmN2mv/GnI9tdp1r0LTe09SuYRFh1wPVNrdX// eVH7T900J2XHgvZDpDapwiuE0/rWgCeeWcIe4QIgIotWiygq8g1MLqbtkaL5SXyX WzLSTuoTxhA70QnT7C2LS57UADMDhXjjDqryLhnZSmdxhu0g+LQ= =/dmx -----END PGP SIGNATURE----- --a7a3feumpr3jovsz--