提交 57da5e47 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

[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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2b7f0b64
...@@ -560,7 +560,6 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe) ...@@ -560,7 +560,6 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe)
struct media_entity *entity; struct media_entity *entity;
struct media_pad *pad; struct media_pad *pad;
struct v4l2_subdev *subdev; struct v4l2_subdev *subdev;
int failure = 0;
entity = &pipe->output->video.entity; entity = &pipe->output->video.entity;
while (1) { while (1) {
...@@ -579,7 +578,7 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe) ...@@ -579,7 +578,7 @@ static int iss_pipeline_disable(struct iss_pipeline *pipe)
v4l2_subdev_call(subdev, video, s_stream, 0); v4l2_subdev_call(subdev, video, s_stream, 0);
} }
return failure; return 0;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册