Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2819422imu; Sun, 23 Dec 2018 08:30:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/WEMi7D4wm9iRMbf5brdNHTgiMErDg+GGu2PZXNKfSkBTlXhE7i4wtN65Vh4y8cG4PKLkcw X-Received: by 2002:a62:5c41:: with SMTP id q62mr10396732pfb.171.1545582600351; Sun, 23 Dec 2018 08:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545582600; cv=none; d=google.com; s=arc-20160816; b=Q9o6QmUb3ux2Wv0ylTcc+aoU1SvyJDxdLuD5iHYFq5ZvfZ7uXS4vccSImtHBvBSknU QzObM606ehgmkx/akH+tSmP6EM3iSUBsisR+IVrLdmuAILkCbeO0/geATzQx1otXG8Vq 0QqpZHRIbbBTL70CAVNfacMiTwnZsemARCeTjz1qkchabXJdGuuXKChZsKIuDJvnCNXZ M1jRe/PngxoBd8Knd2yJP32I/wM4B1X4OWIZPi0MxXXWtiAQTedUdu9HIEyBltQH3PSY ZO6BTMszxe8jSbJq4k8unt4dmxZwS2RXhZJflQYsDyXTBik/IfSS8IDIAksN4WGOWOmo 0Rmg== 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; bh=GOAHOnPL9uSE97cumQVyBwNj/MLcS8+Jr7RaFM7ZM84=; b=k54PadVfYHBG2Q8c6Lrk2+E/qTnkeVAINRdEfkXweh7veORrPY8P4X0fF+UxWKMJZw 3+J1NvCYpurFI2Mpv2DlFotVOZWHtqdc5bdZ+8U5AxppOVKJ9DZHpmoCQZLaTtwaUz4L 1ljMYweg6d3E35sVWdDp4CGk4jPbxQQPBCY7UXPAF0fLRq7NA9FpXwrHcbbsWi5KxVpz O2JXzHKKNGg1vXzR44Ic3RVFi2XyBLjPXye2Cc+hJw+1tOvF2C36B2Uq+Yg5LG6bc9cx xJ2oIxJJMdXfNIi39PZb4vOjU4VGlYc3vHj5rvB2BHJvZUNM1FqTUTUCG1oWURWOGwql HLAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si26715713pgr.345.2018.12.23.08.29.45; Sun, 23 Dec 2018 08:30:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404251AbeLVT3i (ORCPT + 99 others); Sat, 22 Dec 2018 14:29:38 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37863 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730700AbeLVT3i (ORCPT ); Sat, 22 Dec 2018 14:29:38 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 24B7880A5F; Sat, 22 Dec 2018 20:29:31 +0100 (CET) Date: Sat, 22 Dec 2018 20:29:34 +0100 From: Pavel Machek To: Sebastian Reichel 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, Sebastian Reichel Subject: Re: [PATCH 10/14] media: wl128x-radio: simplify fmc_prepare/fmc_release Message-ID: <20181222192934.GA15237@amd> References: <20181221011752.25627-1-sre@kernel.org> <20181221011752.25627-11-sre@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <20181221011752.25627-11-sre@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > /* > * 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; > } You probably leave unused variable (ret) here. I guess that's okay as you remove it later in the series...? 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... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwekJ4ACgkQMOfwapXb+vKjZwCgo0T/gvVxIQhBqehwM3Lusxjf evMAoIxFUWAOaEjLi73wgK/IdM6sKuam =0wrD -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--