svn commit: r277229 - head/sys/ofed/include/linux
Navdeep Parhar
np at FreeBSD.org
Fri Jan 16 02:20:25 UTC 2015
Author: np
Date: Fri Jan 16 02:20:24 2015
New Revision: 277229
URL: https://svnweb.freebsd.org/changeset/base/277229
Log:
Use parentheses instead of close proximity to ensure layer + 1 is evaluated
before the rest of the expression.
Modified:
head/sys/ofed/include/linux/linux_idr.c
Modified: head/sys/ofed/include/linux/linux_idr.c
==============================================================================
--- head/sys/ofed/include/linux/linux_idr.c Fri Jan 16 01:52:26 2015 (r277228)
+++ head/sys/ofed/include/linux/linux_idr.c Fri Jan 16 02:20:24 2015 (r277229)
@@ -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)
More information about the svn-src-all
mailing list