Module Name: src
Committed By: joerg
Date: Fri Aug 28 13:03:36 UTC 2015
Modified Files:
src/sys/dev/ic: isp_netbsd.h
Log Message:
Add parenthesis for a macro to prevent surprises when it is negated.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/dev/ic/isp_netbsd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/isp_netbsd.h
diff -u src/sys/dev/ic/isp_netbsd.h:1.74 src/sys/dev/ic/isp_netbsd.h:1.75
--- src/sys/dev/ic/isp_netbsd.h:1.74 Sun Jul 17 20:54:51 2011
+++ src/sys/dev/ic/isp_netbsd.h Fri Aug 28 13:03:36 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_netbsd.h,v 1.74 2011/07/17 20:54:51 joerg Exp $ */
+/* $NetBSD: isp_netbsd.h,v 1.75 2015/08/28 13:03:36 joerg Exp $ */
/*
* NetBSD Specific definitions for the Qlogic ISP Host Adapter
*/
@@ -252,7 +252,7 @@ default: \
# define HBA_ARQFAIL XS_DRIVER_STUFFUP
#define XS_ERR(xs) (xs)->error
-#define XS_NOERR(xs) (xs)->error == XS_NOERROR
+#define XS_NOERR(xs) ((xs)->error == XS_NOERROR)
#define XS_INITERR(xs) (xs)->error = 0, XS_CMD_S_CLEAR(xs)
#define XS_SAVE_SENSE(xs, ptr, len) \