Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3a3395e authored by Jesper Juhl's avatar Jesper Juhl Committed by Greg Kroah-Hartman
Browse files

[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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ad7e14a5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -345,7 +345,6 @@ if (!retval) {
  <programlisting>
static inline void skel_delete (struct usb_skel *dev)
{
    if (dev->bulk_in_buffer != NULL)
    kfree (dev->bulk_in_buffer);
    if (dev->bulk_out_buffer != NULL)
        usb_buffer_free (dev->udev, dev->bulk_out_size,