diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2017-10-18 19:28:28 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2017-10-18 19:28:28 +0000 |
commit | dd00a8cd290a4189c3e0cf4aad5100e6b4ec66f7 (patch) | |
tree | 84ce8df63fa87aa637d1911398f133f4b3f63355 /sys/dev/qlxgb | |
parent | 4e1847781bdf26b80cd541971868bafffaf64bf5 (diff) |
ql*_def.h: fix QL_ALIGN parenthesization
QL_ALIGN is a set of copies of roundup2, but it was missing an outer set
of parentheses, which began to matter with r324538. Now, fully copy the
parenthesization of roundup2.
Reviewed by: davidcs
Differential Revision: https://reviews.freebsd.org/D12673
Notes
Notes:
svn path=/head/; revision=324728
Diffstat (limited to 'sys/dev/qlxgb')
-rw-r--r-- | sys/dev/qlxgb/qla_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/qlxgb/qla_def.h b/sys/dev/qlxgb/qla_def.h index 77b678c7bc83..d5b11c156768 100644 --- a/sys/dev/qlxgb/qla_def.h +++ b/sys/dev/qlxgb/qla_def.h @@ -200,7 +200,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) \ |