Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Use the variable, don't ...



details:   https://anonhg.NetBSD.org/src/rev/4bfd91cfde52
branches:  trunk
changeset: 365864:4bfd91cfde52
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:02:30 2018 +0000

description:
Use the variable, don't shadow it.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r afd95ee6ce7d -r 4bfd91cfde52 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h    Mon Aug 27 07:02:16 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h    Mon Aug 27 07:02:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_drv.h,v 1.14 2018/08/27 06:18:30 riastradh Exp $  */
+/*     $NetBSD: i915_drv.h,v 1.15 2018/08/27 07:02:30 riastradh Exp $  */
 
 /* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
  */
@@ -2959,8 +2959,7 @@
                 */
                KASSERT(obj->pages != NULL);
                mutex_enter(obj->base.gemo_shm_uao->vmobjlock);
-               struct vm_page *const page =
-                   uvm_pagelookup(obj->base.gemo_shm_uao, ptoa(n));
+               page = uvm_pagelookup(obj->base.gemo_shm_uao, ptoa(n));
                mutex_exit(obj->base.gemo_shm_uao->vmobjlock);
        }
        KASSERT(page != NULL);



Home | Main Index | Thread Index | Old Index