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)
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>

No differences found