drm/i915: work around warning in i915_gem_gtt
authorPavel Machek <pavel@ucw.cz>
Mon, 28 Jul 2014 11:20:58 +0000 (13:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Aug 2014 09:07:15 +0000 (11:07 +0200)
commit57007df74a547c68b3373861aa15efb861af6efc
tree125ec19f397a0dbcac1dfb0ff6e797c9898f2bee
parent72b79c9b2f1b23ba63d7e215963fb90475286ff1
drm/i915: work around warning in i915_gem_gtt

Gcc warns that addr might be used uninitialized. It may not, but I see
why gcc gets confused.

Additionally, hiding code with side-effects inside WARN_ON() argument
seems uncool, so I moved it outside.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
[danvet: Add obligatory /* shuts up gcc */ comment.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c