From 24e2fa2b4d4419ff3a0e0c29310aee8e0aad8b8a Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Fri, 16 Jan 2015 02:20:24 +0000 Subject: [PATCH] Use parentheses instead of close proximity to ensure layer + 1 is evaluated before the rest of the expression. --- sys/ofed/include/linux/linux_idr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ofed/include/linux/linux_idr.c b/sys/ofed/include/linux/linux_idr.c index 273f2ea5d413..3397cda4eb08 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)