USB: remove interface parameter of usb_reset_composite_device
From the current implementation of usb_reset_composite_device function, the iface parameter is no longer useful. This function doesn't do something special for the iface usb_interface,compared with other interfaces in the usb_device. So remove the parameter and fix the related caller. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
33578bd706
commit
625f694936
@@ -1172,8 +1172,7 @@ int usb_stor_port_reset(struct us_data *us)
|
||||
result = -EIO;
|
||||
US_DEBUGP("No reset during disconnect\n");
|
||||
} else {
|
||||
result = usb_reset_composite_device(
|
||||
us->pusb_dev, us->pusb_intf);
|
||||
result = usb_reset_composite_device(us->pusb_dev);
|
||||
US_DEBUGP("usb_reset_composite_device returns %d\n",
|
||||
result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user