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:
Laurent Pinchart 2023-01-27 02:21:57 +01:00 committed by Mauro Carvalho Chehab
parent bc0d3df31f
commit db56a4fb69

View File

@ -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)