From: Mark Brown Subject: Re: ASoC: omap-mcbsp: Deletion of an unnecessary check before the function call "kfree" Date: Tue, 18 Nov 2014 09:40:23 +0000 Message-ID: <20141118094023.GG22111@sirena.org.uk> References: <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <5469F4D5.9050908@users.sourceforge.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lHGcFxmlz1yfXmOs" Return-path: Content-Disposition: inline In-Reply-To: <5469F4D5.9050908@users.sourceforge.net> Sender: linux-omap-owner@vger.kernel.org To: SF Markus Elfring Cc: Jarkko Nikula , Jaroslav Kysela , Liam Girdwood , Peter Ujfalusi , Takashi Iwai , linux-omap@vger.kernel.org, alsa-devel@alsa-project.org, LKML , kernel-janitors@vger.kernel.org, Coccinelle List-Id: alsa-devel@alsa-project.org --lHGcFxmlz1yfXmOs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 17, 2014 at 02:15:01PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 17 Nov 2014 14:05:27 +0100 >=20 > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. Applied, thanks. --lHGcFxmlz1yfXmOs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUaxQCAAoJECTWi3JdVIfQZU0H/356TKBrEHx9HSKrWeApVsta Vyw6L73dZOV9Zaz6tW5YN4jFmgMY+ukFjXaNjliD0aWDW5CoZ7dL5cxa2Fh4p1UB CUWrnBANHwWtuC9RnN8tjQufkon1+wCylbxFy7MfLybR3eAPaf1d0CKXGHLMshAV eFElkPCOaxDUqOcdsOMW5s7iul46voFGAPnVzlE47SUHjGLlRWv7+fgblUO0amav 16KdKBnwVBwRkkQ1oXe3CnMB5XmVqVBw4akfQRTELPYiBfYKgpwlHOmiA04lXae5 X7lnWENrPDL+lHC0rSfQXuKAXQ/+bf1Re8W/+/OaXS6qiJg9g7DU8p9lPRfVgQQ= =I3wy -----END PGP SIGNATURE----- --lHGcFxmlz1yfXmOs--