summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_drv.c
diff options
context:
space:
mode:
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 7760c2b5ce9..fe8ce3cd507 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -4591,7 +4591,7 @@ i915_gem_save_bit_17_swizzle(struct drm_obj *obj)
segp = &obj_priv->dma_segs[0];
n = 0;
i = 0;
- while (i < page_count) {
+ for (i = 0; i < page_count; i++) {
if ((segp->ds_addr + (n * PAGE_SIZE)) & (1 << 17))
set_bit(i, obj_priv->bit_17);
else