Skip to contentSkip to conversation

OMAP3: DSS2: DSI: Remove extra iounmap in error path

PATCH In review Guruswamy Senthilvadivu 2 participants 2 messages Oct 7, 2010 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3: DSS2: DSI: Remove extra iounmap in error path

From: Senthilvadivu Guruswamy <[email protected]>

iounmap is already done in label err2: so extra iounmap in the error handling path could be removed.

---
 drivers/video/omap2/dss/dsi.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/video/omap2/dss/dsi.c +0 -1
index b3fa3a7..aa4f7a5 100644
@@ -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;
Signature · 1 line
1.6.3.3