summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2015-06-17 22:52:12 +0000
committernp <np@FreeBSD.org>2015-06-17 22:52:12 +0000
commit56adc340e23ada92bcacb80f257325b0f869dbe3 (patch)
tree8efd7ef30931c465fb3394d09825c509e99a9276 /sys/ofed
parent643c62522205d1290bcd023410d38352635c5ffb (diff)
downloadFreeBSD-src-56adc340e23ada92bcacb80f257325b0f869dbe3.zip
FreeBSD-src-56adc340e23ada92bcacb80f257325b0f869dbe3.tar.gz
MFC r277229:
Use parentheses instead of close proximity to ensure layer + 1 is evaluated before the rest of the expression.
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/linux_idr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/include/linux/linux_idr.c b/sys/ofed/include/linux/linux_idr.c
index 715a7d7..8eb7949 100644
--- a/sys/ofed/include/linux/linux_idr.c
+++ b/sys/ofed/include/linux/linux_idr.c
@@ -418,7 +418,7 @@ restart:
* to be rare.
*/
if (idx == IDR_SIZE) {
- starting_id = id + (1 << (layer+1 * IDR_BITS));
+ starting_id = id + (1 << ((layer + 1) * IDR_BITS));
goto restart;
}
if (idx > sidx)
OpenPOWER on IntegriCloud