ChangeSet 1.2181.4.28, 2005/03/17 18:14:33-08:00, [EMAIL PROTECTED]
[PATCH] USB Storage: remove unneeded NULL tests
This patch started life as as472 from Alan Stern, and has been rediffed
against the current tip.
This patch simply removes some unnecessary NULL checking before kfree()
calls.
Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
Signed-off-by: Matthew Dharm <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
usb.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff -Nru a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
--- a/drivers/usb/storage/usb.c 2005-03-30 15:10:04 -08:00
+++ b/drivers/usb/storage/usb.c 2005-03-30 15:10:04 -08:00
@@ -829,11 +829,8 @@
scsi_host_put(us->host);
/* Free the extra data and the URB */
- if (us->extra)
- kfree(us->extra);
- if (us->current_urb)
- usb_free_urb(us->current_urb);
-
+ kfree(us->extra);
+ usb_free_urb(us->current_urb);
}
/* Dissociate from the USB device */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html