[media] v4l: omap4iss: Remove unneeded status variable
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 3 Nov 2013 23:28:24 +0000 (20:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 3 Dec 2013 19:49:58 +0000 (17:49 -0200)
The failure variable is initialized with 0 and used as a return value
without ever being modified. Remove it and return 0 directly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/omap4iss/iss.c

index 243fcb8b12bec3f6af5f686ef51415344a899bde..320bfd4182186320c309701d4383bfa335a165db 100644 (file)
@@ -560,7 +560,6 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe)
        struct media_entity *entity;
        struct media_pad *pad;
        struct v4l2_subdev *subdev;
-       int failure = 0;
 
        entity = &pipe->output->video.entity;
        while (1) {
@@ -579,7 +578,7 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe)
                v4l2_subdev_call(subdev, video, s_stream, 0);
        }
 
-       return failure;
+       return 0;
 }
 
 /*