From: Pavel Machek Date: Mon, 28 Jul 2014 11:20:58 +0000 (+0200) Subject: drm/i915: work around warning in i915_gem_gtt X-Git-Tag: cleanup-for-v3.18~83^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57007df74a547c68b3373861aa15efb861af6efc;p=pandora-kernel.git 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 [danvet: Add obligatory /* shuts up gcc */ comment.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed