commit | 57007df74a547c68b3373861aa15efb861af6efc | [log] [tgz] |
---|---|---|
author | Pavel Machek <pavel@ucw.cz> | Mon Jul 28 13:20:58 2014 +0200 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Thu Aug 07 11:07:15 2014 +0200 |
tree | 125ec19f397a0dbcac1dfb0ff6e797c9898f2bee | |
parent | 72b79c9b2f1b23ba63d7e215963fb90475286ff1 [diff] |
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>