]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: Avoid uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Jul 2022 10:55:40 +0000 (13:55 +0300)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 8 Jul 2022 11:41:28 +0000 (13:41 +0200)
commit43985945774565c94a4975af10cb69ec06c73e04
tree807e5af2caf60217e840aa522cd62b9d87157e1d
parenta1d43f9b4eed45aebb330cc803b73bdb1c9fd855
drm/bridge: Avoid uninitialized variable warning

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: 2ba2c224ecc0 ("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
drivers/gpu/drm/drm_bridge.c