diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-02-07 17:22:28 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-02-11 20:39:10 +0200 |
commit | 40d427931dee096c8e67098574a0d9063f2a43c6 (patch) | |
tree | 6c9393aa304a350e6dbb3199a8b31d8d892d2e5a /drivers/gpu/drm/i915/i915_sw_fence.h | |
parent | drm/i915: Disable use of hwsp_cacheline for kernel_context (diff) | |
download | linux-dev-40d427931dee096c8e67098574a0d9063f2a43c6.tar.xz linux-dev-40d427931dee096c8e67098574a0d9063f2a43c6.zip |
drm/i915: Don't use uninitialized 'ret'
Accidentally removed the 'ret=0' initialization, and thus
we're potentially looking at some stack garbage here.
The whole 'ret = do_stuff; if (!ret) do_other_stuff;' pattern
confuses my brain so let's replace it with the standard
immediate return thing.
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 28a30b45f5e9 ("drm/i915: Convert cdclk to global state")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200207152228.1054-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_sw_fence.h')
0 files changed, 0 insertions, 0 deletions