summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2016-01-26 02:44:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 22:44:05 +0100
commit4510a072c60855d0e28000cbb3d7c718801023de (patch)
tree72073bb93286f08915a9a09eea9c89c7665c1477 /drivers/usb/host/ehci.h
parentusb: host: ehci.h: move pointer operator to name side (diff)
downloadlinux-4510a072c60855d0e28000cbb3d7c718801023de.tar.xz
linux-4510a072c60855d0e28000cbb3d7c718801023de.zip
usb: host: ehci.h: move constant to right
This patch moves the constant 0x3ff to right and put spaces in the right shift. Caught by coccinelle: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 30bf43750c67..d1b29b36b347 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -564,7 +564,7 @@ struct ehci_sitd {
__hc32 hw_results; /* EHCI table 3-11 */
#define SITD_IOC (1 << 31) /* interrupt on completion */
#define SITD_PAGE (1 << 30) /* buffer 0/1 */
-#define SITD_LENGTH(x) (0x3ff & ((x)>>16))
+#define SITD_LENGTH(x) (((x) >> 16) & 0x3ff)
#define SITD_STS_ACTIVE (1 << 7) /* HC may execute this */
#define SITD_STS_ERR (1 << 6) /* error from TT */
#define SITD_STS_DBE (1 << 5) /* data buffer error (in HC) */