Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: HWA: fix a warning message

We wanted to print the version as (major).(minor) but because the shift
operation is higher precedence than the mask then we print
(minor).(minor).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
cee2448e aee0ce3a

+1 -1
+1 -1
drivers/usb/host/hwa-hc.c
··· 607 607 wa->wa_descr = wa_descr = (struct usb_wa_descriptor *) hdr; 608 608 if (le16_to_cpu(wa_descr->bcdWAVersion) > 0x0100) 609 609 dev_warn(dev, "Wire Adapter v%d.%d newer than groked v1.0\n", 610 - le16_to_cpu(wa_descr->bcdWAVersion) & 0xff00 >> 8, 610 + (le16_to_cpu(wa_descr->bcdWAVersion) & 0xff00) >> 8, 611 611 le16_to_cpu(wa_descr->bcdWAVersion) & 0x00ff); 612 612 result = 0; 613 613 error: