summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-28 01:06:04 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-28 01:06:04 +0000
commit60bd7ed01b4144160f93ecd63755dacd80ff9bd0 (patch)
treea76b0fa71caca9acd1de2681de5680823d5d923a /sys/dev/pci/drm/i915_drv.c
parent674a42e208f0a7a01da7e3b2c128e6cb47c6a61d (diff)
*sigh* make the same change as previous commit to the sister function of
the one changed.
Diffstat (limited to 'sys/dev/pci/drm/i915_drv.c')
-rw-r--r--sys/dev/pci/drm/i915_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index fe8ce3cd507..91baf10270c 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -4540,7 +4540,7 @@ i915_gem_bit_17_swizzle(struct drm_obj *obj)
obj_priv->bit_17 == NULL)
return;
- while (i < page_count) {
+ for (i = 0; i < page_count; i++) {
/* compare bit 17 with previous one (in case we swapped).
* if they don't match we'll have to swizzle the page
*/