Skip to content

Commit 1c7c62a

Browse files
committed
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: bb3b6fc ("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
1 parent e3b01f0 commit 1c7c62a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ static int sun6i_dsi_probe(struct platform_device *pdev)
10251025
dsi->dphy = devm_phy_get(dev, "dphy");
10261026
if (IS_ERR(dsi->dphy)) {
10271027
dev_err(dev, "Couldn't get the MIPI D-PHY\n");
1028+
ret = PTR_ERR(dsi->dphy);
10281029
goto err_unprotect_clk;
10291030
}
10301031

0 commit comments

Comments
 (0)