]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: simplify ppgtt setup
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Apr 2012 15:29:17 +0000 (17:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:10 +0000 (21:14 +0200)
commit03a67917ae72eae1ae2cb1613b8bead44ff94710
treee103a75917c325ab2c602da32ce395f938b947b7
parente6879a99f620659431f1fe3322adc3f68f2dd339
drm/i915: simplify ppgtt setup

We don't need the pt_addr for the !dmar case, so drop the else and
move the if (dmar) condition out of the loop.

v2: Fixup whitespace damage noticed by Chris Wilson.

v3: Collapse the two identical if blocks. Chris Wilson makes me look
like a moron right now ...

Noticed-by: Konstantin Belousov <kostikbel@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wislon.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c