aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/qlxgbe
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2017-10-18 19:28:28 +0000
committerRyan Libby <rlibby@FreeBSD.org>2017-10-18 19:28:28 +0000
commitdd00a8cd290a4189c3e0cf4aad5100e6b4ec66f7 (patch)
tree84ce8df63fa87aa637d1911398f133f4b3f63355 /sys/dev/qlxgbe
parent4e1847781bdf26b80cd541971868bafffaf64bf5 (diff)
Notes
Diffstat (limited to 'sys/dev/qlxgbe')
-rw-r--r--sys/dev/qlxgbe/ql_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/qlxgbe/ql_def.h b/sys/dev/qlxgbe/ql_def.h
index 8d864ab75ba7..168cd265f66c 100644
--- a/sys/dev/qlxgbe/ql_def.h
+++ b/sys/dev/qlxgbe/ql_def.h
@@ -263,7 +263,7 @@ struct qla_host {
typedef struct qla_host qla_host_t;
/* note that align has to be a power of 2 */
-#define QL_ALIGN(size, align) (size + (align - 1)) & ~(align - 1);
+#define QL_ALIGN(size, align) (((size) + ((align) - 1)) & (~((align) - 1)))
#define QL_MIN(x, y) ((x < y) ? x : y)
#define QL_RUNNING(ifp) (ifp->if_drv_flags & IFF_DRV_RUNNING)