summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2015-01-16 02:20:24 +0000
committernp <np@FreeBSD.org>2015-01-16 02:20:24 +0000
commitbadd58cf3b20583b64c21ef09138eacf236428c4 (patch)
tree18a36b1ac3e4a5764973b378025bac4edea4246c /sys/ofed
parent65188cf2f5d2c6f91d3f8a3237f49e570bcfb843 (diff)
downloadFreeBSD-src-badd58cf3b20583b64c21ef09138eacf236428c4.zip
FreeBSD-src-badd58cf3b20583b64c21ef09138eacf236428c4.tar.gz
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 273f2ea..3397cda 100644
--- a/sys/ofed/include/linux/linux_idr.c
+++ b/sys/ofed/include/linux/linux_idr.c
@@ -408,7 +408,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