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) _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"