From: "Geyslan G. Bem" <geyslan@gmail.com>
To: peter.senna@gmail.com
Cc: "Geyslan G. Bem" <geyslan@gmail.com>,
Alan Stern <stern@rowland.harvard.edu>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 9/9] usb: host: ehci.h: move constant to right
Date: Wed, 9 Dec 2015 19:15:37 -0300 [thread overview]
Message-ID: <1449699341-12969-9-git-send-email-geyslan@gmail.com> (raw)
In-Reply-To: <1449699341-12969-1-git-send-email-geyslan@gmail.com>
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>
---
drivers/usb/host/ehci.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 81e609a..de94555 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -555,7 +555,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) */
--
2.6.3
next prev parent reply other threads:[~2015-12-09 22:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 22:15 [PATCH 1/9] usb: host: ehci.h: remove space before comma Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 2/9] usb: host: ehci.h: remove space before function open parenthesis Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 3/9] usb: host: ehci.h: remove space before open square bracket Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 4/9] usb: host: ehci.h: fix single statement macros Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 5/9] usb: host: ehci.h: remove direct use of __attribute__ keyword Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 6/9] usb: host: ehci.h: use space after comma Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 7/9] usb: host: ehci.h: remove macros trailing semicolon Geyslan G. Bem
2015-12-09 22:15 ` [PATCH 8/9] usb: host: ehci.h: move pointer operator to name side Geyslan G. Bem
2015-12-09 22:15 ` Geyslan G. Bem [this message]
2015-12-10 10:23 ` [PATCH 9/9] usb: host: ehci.h: move constant to right Peter Senna Tschudin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449699341-12969-9-git-send-email-geyslan@gmail.com \
--to=geyslan@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.senna@gmail.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome