USB: fix needless failure under certain conditions
authorOliver Neukum <oneukum@suse.de>
Thu, 25 Jan 2007 10:22:24 +0000 (11:22 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:17 +0000 (15:32 -0800)
commit6957e1ac9c498ff934eaf1b7591b5ea1c98b6e54
tree4d02721f6f0b376a8f6fe084647acebfe6f79d2b
parentc5999f0da73b7f46435a67671c8861ed14a94c4e
USB: fix needless failure under certain conditions

in devices.c we have a piece of code for dealing with losing in a race.
If we indeed lose the race we don't care whether our own memory allocation
worked. The check for that is so early that we return early even if we
don't have to.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devices.c