Skip to content

Commit

Permalink
OMAP: DSS2: DSI: Remove extra iounmap in error path
Browse files Browse the repository at this point in the history
iounmap is already done in label err2: so extra iounmap in
the error handling path could be removed.

Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Senthilvadivu Guruswamy authored and Tomi Valkeinen committed Oct 22, 2010
1 parent a0acb55 commit e663452
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,6 @@ int dsi_init(struct platform_device *pdev)

dsi.vdds_dsi_reg = dss_get_vdds_dsi();
if (IS_ERR(dsi.vdds_dsi_reg)) {
iounmap(dsi.base);
DSSERR("can't get VDDS_DSI regulator\n");
r = PTR_ERR(dsi.vdds_dsi_reg);
goto err2;
Expand Down

0 comments on commit e663452

Please sign in to comment.