mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 06:36:29 +07:00
drm/i915/display: Mark conn as initialised by iterator
smatch complains about drivers/gpu/drm/i915//display/intel_display.c:14403 intel_set_dp_tp_ctl_normal() error: uninitialized symbol 'conn'. because it has no way to determine that the loop must have an entry. Tell the static analysers to ignore the local, it will always be set. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191028142652.1987-2-chris@chris-wilson.co.uk
This commit is contained in:
parent
e7f536000c
commit
f9d9fece29
@ -14391,8 +14391,8 @@ static void intel_crtc_enable_trans_port_sync(struct intel_crtc *crtc,
|
||||
static void intel_set_dp_tp_ctl_normal(struct intel_crtc *crtc,
|
||||
struct intel_atomic_state *state)
|
||||
{
|
||||
struct drm_connector *uninitialized_var(conn);
|
||||
struct drm_connector_state *conn_state;
|
||||
struct drm_connector *conn;
|
||||
struct intel_dp *intel_dp;
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user