]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/display: Mark conn as initialised by iterator
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 14:26:52 +0000 (14:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 16:09:44 +0000 (16:09 +0000)
commitf9d9fece29b8b5cd4943eccd7bd73b6241d424fa
tree31507f0061573cea2e1a27d84f3c6db1b4e8a83a
parente7f536000c4c293f4abae3adc25c7442386c5ab2
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
drivers/gpu/drm/i915/display/intel_display.c