media: imx: imx7-media-csi: Drop unneeded check when starting streaming
The .s_stream() operation is guaranteed not to be called to start/stop an already started/stopped subdev. Remove the unneeded check. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon-kit Acked-by: Rui Miguel Silva <rmfrfs@gmail.com> Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
bc0d3df31f
commit
db56a4fb69
@ -1736,9 +1736,6 @@ static int imx7_csi_s_stream(struct v4l2_subdev *sd, int enable)
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
if (csi->is_streaming == !!enable)
|
||||
goto out_unlock;
|
||||
|
||||
if (enable) {
|
||||
ret = imx7_csi_init(csi);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user