Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1173168
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tc1100-wmi: Delete an unnecessary check before the function call "kfree" |
| Date | 2015-06-27 01:10 +0200 |
| Message-ID | <pFKUV-4Dr-3@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <mSsDN-4wa-61@gated-at.bofh.it> <mSsDN-4wa-63@gated-at.bofh.it> <mSsDN-4wa-65@gated-at.bofh.it> <mSsDN-4wa-33@gated-at.bofh.it> <pFHu1-86c-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jun 26, 2015 at 09:28:08PM +0200, SF Markus Elfring wrote: > From: Markus Elfring <elfring@users.sourceforge.net> > Date: Fri, 26 Jun 2015 21:21:16 +0200 > > 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> Queued, thanks. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] tc1100-wmi: Delete an unnecessary check before the function call "kfree" Darren Hart <dvhart@infradead.org> - 2015-06-27 01:10 +0200
csiph-web