avoid sequence-point warning with gcc 4.9
authorjsg <jsg@openbsd.org>
Thu, 13 Sep 2018 03:38:15 +0000 (03:38 +0000)
committerjsg <jsg@openbsd.org>
Thu, 13 Sep 2018 03:38:15 +0000 (03:38 +0000)
ok kettenis@

sys/dev/pci/drm/i915/i915_gem.c

index 638f105..017d4ea 100644 (file)
@@ -2777,7 +2777,7 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj)
        TAILQ_FOREACH(page, &plist, pageq) {
                st->nents++;
                sg_dma_address(sg) = VM_PAGE_TO_PHYS(page);
-               sg_dma_len(sg) = sg->length = PAGE_SIZE;
+               sg_dma_len(sg) = PAGE_SIZE;
                sg++;
                i++;
        }