Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add parenthesis for a macro to prevent surprises ...
details: https://anonhg.NetBSD.org/src/rev/8d522c068480
branches: trunk
changeset: 340237:8d522c068480
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Aug 28 13:03:36 2015 +0000
description:
Add parenthesis for a macro to prevent surprises when it is negated.
diffstat:
sys/dev/ic/isp_netbsd.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bf8836910970 -r 8d522c068480 sys/dev/ic/isp_netbsd.h
--- a/sys/dev/ic/isp_netbsd.h Fri Aug 28 12:17:41 2015 +0000
+++ b/sys/dev/ic/isp_netbsd.h Fri Aug 28 13:03:36 2015 +0000
@@ -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 @@
# 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) \
Home |
Main Index |
Thread Index |
Old Index