USB: Make usb_buffer_free() NULL-safe
authorDmitry Torokhov <dtor@insightbb.com>
Wed, 2 Aug 2006 02:33:34 +0000 (22:33 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:49 +0000 (11:58 -0700)
commitb94badbb47cb50f4fca8440efdaa8ebd32604fe4
treeab30562cdd55a5587bb596f23f443b3d8910a0e1
parent988440e7e51c6f8061c98d03d618ba090e7b84ef
USB: Make usb_buffer_free() NULL-safe

kfree() handles NULL arguments which is handy in error handling paths as one
does need to  insert bunch of ifs. How about making usb_buffer_free() do the
same?

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/usb.c