* [PATCH 14/14] Big kfree NULL check cleanup - Documentation
@ 2005-10-13 19:31 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-10-13 19:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, Greg Kroah-Hartman, Jesper Juhl
This is the Documentation/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in example code in Documentation/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
Please see the initial announcement mail on LKML with subject
"[PATCH 00/14] Big kfree NULL check cleanup"
for additional details.
Documentation/DocBook/writing_usb_driver.tmpl | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.14-rc4-orig/Documentation/DocBook/writing_usb_driver.tmpl 2005-08-29 01:41:01.000000000 +0200
+++ linux-2.6.14-rc4/Documentation/DocBook/writing_usb_driver.tmpl 2005-10-12 15:25:38.000000000 +0200
@@ -345,8 +345,7 @@ if (!retval) {
<programlisting>
static inline void skel_delete (struct usb_skel *dev)
{
- if (dev->bulk_in_buffer != NULL)
- kfree (dev->bulk_in_buffer);
+ kfree (dev->bulk_in_buffer);
if (dev->bulk_out_buffer != NULL)
usb_buffer_free (dev->udev, dev->bulk_out_size,
dev->bulk_out_buffer,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-13 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-13 19:31 [PATCH 14/14] Big kfree NULL check cleanup - Documentation Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox