drm/bridge: Avoid uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Jul 2022 10:55:40 +0000 (13:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:50 +0000 (12:34 +0200)
commit652042135e08db9584ef365572e8fe69a2a59105
tree0987e20f67fa42f71c8a0928888de1be7f6bd414
parentf369fb4deed7ab997cfa703dc85ec08b3adc1af8
drm/bridge: Avoid uninitialized variable warning

[ Upstream commit 7d1202738efda60155d98b370b3c70d336be0eea ]

This code works, but technically it uses "num_in_bus_fmts" before it
has been initialized so it leads to static checker warnings and probably
KMEMsan warnings at run time.  Initialize the variable to zero to
silence the warning.

Fixes: f32df58acc68 ("drm/bridge: Add the necessary bits to support bus format negotiation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YrrIs3hoGcPVmXc5@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_bridge.c