]> git.baikalelectronics.ru Git - kernel.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)
commitbbd19a5026d99e8c148c86138dc1387e9e14acc0
tree31507f0061573cea2e1a27d84f3c6db1b4e8a83a
parent0b3a697a387d3882e6130695a80e527cb3148e0b
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