[PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL
authorJesper Juhl <juhl-lkml@dif.dk>
Tue, 19 Apr 2005 00:39:34 +0000 (17:39 -0700)
committerGreg K-H <gregkh@suse.de>
Tue, 19 Apr 2005 00:39:34 +0000 (17:39 -0700)
commit1bc3c9e1e44c2059fe2ffa6ff70ad0a925d7b05f
tree0bc14ec53acf3b4c08a9995c7ea335e236435558
parent6fd19f4b55f7fd1c9d8650bd7f8df2c81b69c5ca
[PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL

Get rid of a bunch of redundant NULL pointer checks in drivers/usb/*,
there's no need to check a pointer for NULL before calling kfree() on it.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Index: gregkh-2.6/drivers/usb/class/audio.c
===================================================================
26 files changed:
drivers/usb/class/audio.c
drivers/usb/class/bluetty.c
drivers/usb/core/devices.c
drivers/usb/core/hub.c
drivers/usb/gadget/serial.c
drivers/usb/host/ehci-mem.c
drivers/usb/host/uhci-hcd.c
drivers/usb/input/hid-core.c
drivers/usb/media/dabusb.c
drivers/usb/media/ov511.c
drivers/usb/media/se401.c
drivers/usb/media/usbvideo.c
drivers/usb/media/w9968cf.c
drivers/usb/misc/auerswald.c
drivers/usb/net/zd1201.c
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/cypress_m8.c
drivers/usb/serial/empeg.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_ti.c
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/omninet.c
drivers/usb/serial/pl2303.c
drivers/usb/serial/ti_usb_3410_5052.c
drivers/usb/storage/sddr55.c