]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: hdmi: Fix unitialized variable
authorMaxime Ripard <maxime.ripard@bootlin.com>
Sun, 21 Oct 2018 16:34:45 +0000 (18:34 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 29 Oct 2018 13:19:51 +0000 (14:19 +0100)
commitc59a40d4c29f2f42f46a9623b1cda388e31e504d
treef47f56085d3a0047b7f281d1d81e55a5e589b588
parent62828eec190c2607d2a8361f555c6c1632dddb0a
drm/sun4i: hdmi: Fix unitialized variable

The is_double variable is used to store, and possibly returning to the
calling function, whether it needs to double the rate of the parent clock
or not.

In the case where it does, the variable is affected, but in the case where
it doesn't we return some uninitialized value. Fix this.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181021163446.29135-1-maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c