ChangeSet 1.1673.8.66, 2004/03/31 14:08:01-08:00, greg@kroah.com USB: clean up usb_get_dev() as it was written quite horribly. drivers/usb/core/usb.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff -Nru a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c --- a/drivers/usb/core/usb.c Wed Apr 14 14:34:29 2004 +++ b/drivers/usb/core/usb.c Wed Apr 14 14:34:29 2004 @@ -770,16 +770,9 @@ */ struct usb_device *usb_get_dev (struct usb_device *dev) { - struct device *tmp; - - if (!dev) - return NULL; - - tmp = get_device(&dev->dev); - if (tmp) - return to_usb_device(tmp); - else - return NULL; + if (dev) + get_device(&dev->dev); + return dev; } /**