mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/i915/display: Return early after MISSING_CASE for write_dp_sdp
Avoid using the uninitialised len along the impossible error path to shut the compiler up: drivers/gpu/drm/i915/display/intel_dp.c:4928 intel_write_dp_sdp() error: uninitialized symbol 'len'. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200325140754.12636-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
7015f127d8
commit
d121f63c00
@ -4922,7 +4922,7 @@ static void intel_write_dp_sdp(struct intel_encoder *encoder,
|
||||
break;
|
||||
default:
|
||||
MISSING_CASE(type);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
if (drm_WARN_ON(&dev_priv->drm, len < 0))
|
||||
|
Loading…
Reference in New Issue
Block a user