PERFORCE change 161556 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon May 4 12:28:57 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161556
Change 161556 by hselasky at hselasky_laptop001 on 2009/05/04 12:28:38
USB CORE:
- Properly parenthesis pointer argument used inside macro.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_core.h#15 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_core.h#15 (text+ko) ====
@@ -234,8 +234,8 @@
* 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))
+ 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 p4-projects
mailing list