diff options
author | np <np@FreeBSD.org> | 2015-06-17 22:52:12 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2015-06-17 22:52:12 +0000 |
commit | 56adc340e23ada92bcacb80f257325b0f869dbe3 (patch) | |
tree | 8efd7ef30931c465fb3394d09825c509e99a9276 /sys/ofed/include/linux/linux_idr.c | |
parent | 643c62522205d1290bcd023410d38352635c5ffb (diff) | |
download | FreeBSD-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/include/linux/linux_idr.c')
-rw-r--r-- | sys/ofed/include/linux/linux_idr.c | 2 |
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) |