summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-11-03 20:28:24 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-12-03 17:49:58 -0200
commit57da5e47ccf3d727958aeef7675154d48635fa09 (patch)
tree3075127fd0f1de10bda8f9f6dc7ae0a053a4d37a
parent2b7f0b641ab125e06db707bee47ddf3f19218cbb (diff)
downloadlinux-57da5e47ccf3d727958aeef7675154d48635fa09.tar.bz2
[media] v4l: omap4iss: Remove unneeded status variable
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>
-rw-r--r--drivers/staging/media/omap4iss/iss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c
index 243fcb8b12be..320bfd418218 100644
--- a/drivers/staging/media/omap4iss/iss.c
+++ b/drivers/staging/media/omap4iss/iss.c
@@ -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;
}
/*