summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-10-29 09:46:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-04 00:26:15 +0100
commitcee2448e5b412ea109e92be12cd504df28ab1e0f (patch)
treebd5d51a14fe4955ab245af16f6b80513ab2e3ec4
parentuas: Add US_FL_NO_ATA_1X quirk for 1 more Seagate model (diff)
downloadlinux-cee2448e5b412ea109e92be12cd504df28ab1e0f.tar.xz
linux-cee2448e5b412ea109e92be12cd504df28ab1e0f.zip
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>
-rw-r--r--drivers/usb/host/hwa-hc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/hwa-hc.c b/drivers/usb/host/hwa-hc.c
index d0d8fadf7066..1db0626c8bf4 100644
--- a/drivers/usb/host/hwa-hc.c
+++ b/drivers/usb/host/hwa-hc.c
@@ -607,7 +607,7 @@ found:
wa->wa_descr = wa_descr = (struct usb_wa_descriptor *) hdr;
if (le16_to_cpu(wa_descr->bcdWAVersion) > 0x0100)
dev_warn(dev, "Wire Adapter v%d.%d newer than groked v1.0\n",
- le16_to_cpu(wa_descr->bcdWAVersion) & 0xff00 >> 8,
+ (le16_to_cpu(wa_descr->bcdWAVersion) & 0xff00) >> 8,
le16_to_cpu(wa_descr->bcdWAVersion) & 0x00ff);
result = 0;
error: