mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
storage: Replace magic number with define in usb_stor_euscsi_init()
usb_stor_euscsi_init() calls usb_stor_control_msg() with timeout argument 5000. USB_CTRL_SET_TIMEOUT is defined to be 5000 in usb.h, so would it make sense to use that instead? Patch below if it would. Signed-off-by: Mark Knibbs <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5cb307c4c2
commit
bda9893c50
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ int usb_stor_euscsi_init(struct us_data *us)
|
|||
us->iobuf[0] = 0x1;
|
||||
result = usb_stor_control_msg(us, us->send_ctrl_pipe,
|
||||
0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR,
|
||||
0x01, 0x0, us->iobuf, 0x1, 5000);
|
||||
0x01, 0x0, us->iobuf, 0x1, USB_CTRL_SET_TIMEOUT);
|
||||
usb_stor_dbg(us, "-- result is %d\n", result);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue