summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-09-13 03:38:16 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-09-13 03:38:16 +0000
commit5271834a880a6ed92633e975954837dca2d3a843 (patch)
treeefd687c336aa6a503bde8f0fc99e08dbb06c8d3d /sys/dev/pci/drm
parentad8bd8ea9c834c6aeedd6fc019977786df06dbd3 (diff)
avoid sequence-point warning with gcc 4.9
ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c
index 638f105adc7..017d4ea943c 100644
--- a/sys/dev/pci/drm/i915/i915_gem.c
+++ b/sys/dev/pci/drm/i915/i915_gem.c
@@ -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++;
}