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:
Dominique Leuenberger 2023-11-28 14:24:08 +01:00
parent 23077bf825
commit 3b79e9c866
No known key found for this signature in database
GPG Key ID: 14C1CBBAC1E4B014

View File

@ -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"