Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2015 02:20:25 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277229 - head/sys/ofed/include/linux
Message-ID:  <201501160220.t0G2KPmm048767@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501160220.t0G2KPmm048767>