[media] omap3isp: rename single labels to just error
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 11 Dec 2015 17:16:29 +0000 (15:16 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:08 +0000 (12:19 -0200)
Commit bc36b30fe06b ("[media] omap3isp: separate links creation from
entities init") moved the link creation logic from the entities init
functions and so removed the error_link labels from the error paths.

But after that, some functions have a single error label so it makes
more sense to rename the label to just "error" in thi case.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/ispccdc.c
drivers/media/platform/omap3isp/ispccp2.c

index 5e16b5f594b78b7e4b61f2f7d8a71348efd1bcec..4eaf926d607341634d08354fd471c87dcda01f80 100644 (file)
@@ -2669,11 +2669,11 @@ static int ccdc_init_entities(struct isp_ccdc_device *ccdc)
 
        ret = omap3isp_video_init(&ccdc->video_out, "CCDC");
        if (ret < 0)
-               goto error_video;
+               goto error;
 
        return 0;
 
-error_video:
+error:
        media_entity_cleanup(me);
        return ret;
 }
index 27f5fe4edefcc81f666175c80b355b28e02a25a8..ca095238510d5774109e114eb795c441be763dbf 100644 (file)
@@ -1102,11 +1102,11 @@ static int ccp2_init_entities(struct isp_ccp2_device *ccp2)
 
        ret = omap3isp_video_init(&ccp2->video_in, "CCP2");
        if (ret < 0)
-               goto error_video;
+               goto error;
 
        return 0;
 
-error_video:
+error:
        media_entity_cleanup(&ccp2->subdev.entity);
        return ret;
 }