Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2013 14:35:36 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 231251 for review
Message-ID:  <201307181435.r6IEZacv051241@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@231251?ac=10

Change 231251 by jhb@jhb_jhbbsd on 2013/07/18 14:35:08

	Appease GCC.

Affected files ...

.. //depot/projects/pci/sys/dev/pci/pci_pci.c#41 edit

Differences ...

==== //depot/projects/pci/sys/dev/pci/pci_pci.c#41 (text+ko) ====

@@ -1336,11 +1336,11 @@
 	 * of the area above 64k.
 	 */
 	for (i = 0; i < w->count; i++) {
-		res = w->res[i];
-		if (rman_get_end(res) == w->limit)
+		if (rman_get_end(w->res[i]) == w->limit)
 			break;
 	}
 	KASSERT(i != w->count, ("did not find existing resource"));
+	res = w->res[i];
 
 	/*
 	 * Usually the resource we found should match the window's



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