svn commit: r284530 - stable/10/sys/ofed/include/linux
Navdeep Parhar
np at FreeBSD.org
Wed Jun 17 22:52:13 UTC 2015
Author: np
Date: Wed Jun 17 22:52:12 2015
New Revision: 284530
URL: https://svnweb.freebsd.org/changeset/base/284530
Log:
MFC r277229:
Use parentheses instead of close proximity to ensure layer + 1 is evaluated
before the rest of the expression.
Modified:
stable/10/sys/ofed/include/linux/linux_idr.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/ofed/include/linux/linux_idr.c
==============================================================================
--- stable/10/sys/ofed/include/linux/linux_idr.c Wed Jun 17 22:44:27 2015 (r284529)
+++ stable/10/sys/ofed/include/linux/linux_idr.c Wed Jun 17 22:52:12 2015 (r284530)
@@ -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)
More information about the svn-src-stable-10
mailing list