Commit bda9893c50fb56253d3c206c14e3f933e5f68b3c
Committed by
Greg Kroah-Hartman
1 parent
5cb307c4c2
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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 <markk@clara.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/usb/storage/initializers.c
... | ... | @@ -52,7 +52,7 @@ |
52 | 52 | us->iobuf[0] = 0x1; |
53 | 53 | result = usb_stor_control_msg(us, us->send_ctrl_pipe, |
54 | 54 | 0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR, |
55 | - 0x01, 0x0, us->iobuf, 0x1, 5000); | |
55 | + 0x01, 0x0, us->iobuf, 0x1, USB_CTRL_SET_TIMEOUT); | |
56 | 56 | usb_stor_dbg(us, "-- result is %d\n", result); |
57 | 57 | |
58 | 58 | return 0; |
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225
-
mentioned in commit ac0225