Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1377944
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: cxl: Delete an unnecessary check before the function call "kfree" |
| Date | 2016-04-13 15:40 +0200 |
| Message-ID | <rntbs-1Uv-7@gated-at.bofh.it> (permalink) |
| References | <qrM81-36S-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: cxl: Delete an unnecessary check before the function call "kfree" Michael Ellerman <mpe@ellerman.id.au> - 2016-04-13 15:40 +0200
csiph-web