Add parenthesis around the xfer macro argument.

Submitted by:	Hans Petter Selasky
This commit is contained in:
Andrew Thompson 2009-05-13 18:25:14 +00:00
parent ecf65ed434
commit 8ea86e467f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192056

View File

@ -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