drm/i915: Exit early from psr_status if PSR is not supported by the device
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 9 Mar 2015 14:17:58 +0000 (14:17 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:10 +0000 (22:30 +0100)
commit3553a8eadb711e9236e517e44be67665bb5b4c65
tree22bccef1ad67537e36347aa5c7c62876d15bf374
parent9d0d3fdaae08e9221070dda32348116c2a3235ed
drm/i915: Exit early from psr_status if PSR is not supported by the device

Static analysis was complaining that a path existed where we could use
stat[] uninitialized. Fix this by simplifying the logic to exit early if
PSR isn't supported.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c