Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1377944 > unrolled thread

Re: cxl: Delete an unnecessary check before the function call "kfree"

Started byMichael Ellerman <mpe@ellerman.id.au>
First post2016-04-13 15:40 +0200
Last post2016-04-13 15:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: cxl: Delete an unnecessary check before the function call "kfree" Michael Ellerman <mpe@ellerman.id.au> - 2016-04-13 15:40 +0200

#1377944 — Re: cxl: Delete an unnecessary check before the function call "kfree"

FromMichael Ellerman <mpe@ellerman.id.au>
Date2016-04-13 15:40 +0200
SubjectRe: cxl: Delete an unnecessary check before the function call "kfree"
Message-ID<rntbs-1Uv-7@gated-at.bofh.it>
On Fri, 2015-06-11 at 10:05:46 UTC, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Fri, 6 Nov 2015 11:00:23 +0100
> 
> The kfree() function tests whether its argument is NULL and then
> returns immediately. Thus the test around the call is not needed.
> 
> This issue was detected by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
> Acked-by: Ian Munsie <imunsie@au1.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/1050e689a63baffdadcd33498c

cheers

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web