diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-10-13 21:31:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 09:52:55 -0700 |
commit | a3a3395e487abc4c1371fe319a8ecbb3913a70a4 (patch) | |
tree | 81caf424dcae1b2231946a9cebd83d5b067f32b4 /Documentation/DocBook/writing_usb_driver.tmpl | |
parent | ad7e14a55ed7648d02a4df8e460e291d80a18c98 (diff) | |
download | linux-a3a3395e487abc4c1371fe319a8ecbb3913a70a4.tar.gz linux-a3a3395e487abc4c1371fe319a8ecbb3913a70a4.tar.xz |
[PATCH] Driver Core: Big kfree NULL check cleanup - Documentation
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/DocBook/writing_usb_driver.tmpl')
-rw-r--r-- | Documentation/DocBook/writing_usb_driver.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/DocBook/writing_usb_driver.tmpl b/Documentation/DocBook/writing_usb_driver.tmpl index 51f3bfb6fb6e..008a341234d0 100644 --- a/Documentation/DocBook/writing_usb_driver.tmpl +++ b/Documentation/DocBook/writing_usb_driver.tmpl @@ -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, |