Re: [Intel-gfx] [PATCH v2] drm/i915: set "ret" correctly on error paths

2017-04-15 Thread Chris Wilson
On Fri, Apr 14, 2017 at 10:54:25PM +0300, Dan Carpenter wrote: > 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

[Intel-gfx] [PATCH v2] drm/i915: set "ret" correctly on error paths

2017-04-14 Thread Dan Carpenter
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