mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git
synced 2024-11-27 05:43:49 +08:00
usb-devices: fix bashism
> checkbashisms usb-devices possible bashism in usb-devices line 78 ('((' should be '$(('): maxps=$(($(printf "%4i*%s\n" $((maxps_hex & 0x7ff)) \ $((1 + ((maxps_hex >> 11) & 0x3)))))) Signed-off-by: Dominique Leuenberger <dimstar@opensuse.org>
This commit is contained in:
parent
23077bf825
commit
3b79e9c866
@ -75,7 +75,7 @@ print_endpoint() {
|
||||
# Extract MaxPS size (bits 0-10) and multiplicity values (bits 11-12)
|
||||
|
||||
maxps=$(($(printf "%4i*%s\n" $((maxps_hex & 0x7ff)) \
|
||||
$((1 + ((maxps_hex >> 11) & 0x3))))))
|
||||
$((1 + ($((maxps_hex >> 11)) & 0x3))))))
|
||||
|
||||
read -r interval < "$eppath/interval"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user