]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clarify relocation errnos
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 26 Dec 2013 21:39:50 +0000 (13:39 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Jan 2014 08:58:25 +0000 (09:58 +0100)
commit50f5d577fdd64c550f2f0bb6053bb27e09de791b
tree8ae43bfce2065aac19a686b725a326a59cf60ead
parent278583c8fd52aefd03dd366fd86b5b1ff3be1ea6
drm/i915: Clarify relocation errnos

While trying to find a random -EINVAL from a failing test, I noticed we
had a few hard to follow return values.

The first two hunks in this patch replace completely useless
initialization of ret. The last several hunks help to distinguish
between altering 'return ret' and 'return <ERROR>'

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c