USB: fix __must_check warnings in drivers/usb/core/

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman
2006-08-28 11:43:25 -07:00
parent 592fbbe4bc
commit 1b21d5e166
6 changed files with 80 additions and 29 deletions

View File

@@ -147,11 +147,13 @@ static int __find_interface(struct device * dev, void * data)
struct usb_interface *usb_find_interface(struct usb_driver *drv, int minor)
{
struct find_interface_arg argb;
int retval;
argb.minor = minor;
argb.interface = NULL;
driver_for_each_device(&drv->drvwrap.driver, NULL, &argb,
__find_interface);
/* eat the error, it will be in argb.interface */
retval = driver_for_each_device(&drv->drvwrap.driver, NULL, &argb,
__find_interface);
return argb.interface;
}