svn commit: r192056 - head/sys/dev/usb
Andrew Thompson
thompsa at FreeBSD.org
Wed May 13 18:25:15 UTC 2009
Author: thompsa
Date: Wed May 13 18:25:14 2009
New Revision: 192056
URL: http://svn.freebsd.org/changeset/base/192056
Log:
Add parenthesis around the xfer macro argument.
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb/usb_core.h
Modified: head/sys/dev/usb/usb_core.h
==============================================================================
--- head/sys/dev/usb/usb_core.h Wed May 13 18:06:52 2009 (r192055)
+++ head/sys/dev/usb/usb_core.h Wed May 13 18:25:14 2009 (r192056)
@@ -233,9 +233,9 @@
* The following macro will tell if an USB transfer is currently
* receiving or transferring data.
*/
-#define USB_GET_DATA_ISREAD(xfer) (((xfer)->flags_int.usb2_mode == \
- USB_MODE_DEVICE) ? ((xfer->endpoint & UE_DIR_IN) ? 0 : 1) : \
- ((xfer->endpoint & UE_DIR_IN) ? 1 : 0))
+#define USB_GET_DATA_ISREAD(xfer) ((xfer)->flags_int.usb2_mode == \
+ USB_MODE_DEVICE ? (((xfer)->endpoint & UE_DIR_IN) ? 0 : 1) : \
+ (((xfer)->endpoint & UE_DIR_IN) ? 1 : 0))
/*
* The following macros are used used to convert milliseconds into
More information about the svn-src-all
mailing list