]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: dsi: Fix unitialized variable warning
authorMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 8 Feb 2019 09:05:40 +0000 (10:05 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 8 Feb 2019 09:28:11 +0000 (10:28 +0100)
commit0c6fa25a001b735c190b1945e3f4e48560a30b90
treeda6c3ad1fd74da31076ebff2fc7e0eb00e04d5b4
parent8699afbfa9d6d1118c0a4239bc2cbadf467b701a
drm/sun4i: dsi: Fix unitialized variable warning

Since the DPHY rework, one error path doesn't set the return error code
before jumping to its error label, which in turns make gcc (rightfully)
complain about the variable holding the error code being uninitialized.

Fix this.

Fixes: 46c8a87d1775 ("sun6i: dsi: Convert to generic phy handling")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208090540.19626-1-maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c