]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: set "ret" correctly on error paths
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Apr 2017 19:54:25 +0000 (22:54 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 15 Apr 2017 09:31:46 +0000 (10:31 +0100)
commit16be7d6e7291baf11e51ca72f00e3d76055b6675
tree0084404ebf4cf201cc73b3943cbfe2eff29e797f
parenta1da8f17820c2606a40be8399e9cdd81d3743cfd
drm/i915: set "ret" correctly on error paths

If "crtc" is NULL, then my static checker complains that "ret" isn't
initialized on that path.  It doesn't really cause a problem unless
"ret" is somehow set to -EDEADLK which is not likely.

Chris Wilson also noticed another error path where "ret" isn't set
correctly.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170414195425.GA8144@mwanda
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c