mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
drivers: usb: core: hcd: removed braces for return statements
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
048cb21c37
commit
070104966c
@ -1121,18 +1121,18 @@ long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount)
|
||||
case USB_SPEED_LOW: /* INTR only */
|
||||
if (is_input) {
|
||||
tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L;
|
||||
return (64060L + (2 * BW_HUB_LS_SETUP) + BW_HOST_DELAY + tmp);
|
||||
return 64060L + (2 * BW_HUB_LS_SETUP) + BW_HOST_DELAY + tmp;
|
||||
} else {
|
||||
tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L;
|
||||
return (64107L + (2 * BW_HUB_LS_SETUP) + BW_HOST_DELAY + tmp);
|
||||
return 64107L + (2 * BW_HUB_LS_SETUP) + BW_HOST_DELAY + tmp;
|
||||
}
|
||||
case USB_SPEED_FULL: /* ISOC or INTR */
|
||||
if (isoc) {
|
||||
tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L;
|
||||
return (((is_input) ? 7268L : 6265L) + BW_HOST_DELAY + tmp);
|
||||
return ((is_input) ? 7268L : 6265L) + BW_HOST_DELAY + tmp;
|
||||
} else {
|
||||
tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L;
|
||||
return (9107L + BW_HOST_DELAY + tmp);
|
||||
return 9107L + BW_HOST_DELAY + tmp;
|
||||
}
|
||||
case USB_SPEED_HIGH: /* ISOC or INTR */
|
||||
/* FIXME adjust for input vs output */
|
||||
|
Loading…
Reference in New Issue
Block a user