aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2023-01-27 02:21:57 +0100
committerMauro Carvalho Chehab <[email protected]>2023-02-08 09:05:27 +0100
commitdb56a4fb6923a37b437a9806189d13c89c38448b (patch)
tree15842e46c512d322455cecda71e577ea6e8c2737
parentbc0d3df31ffe87d3162710adc5a6ad0f3744b066 (diff)
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 <[email protected]> Tested-by: Adam Ford <[email protected]> #imx8mm-beacon-kit Acked-by: Rui Miguel Silva <[email protected]> Tested-by: Martin Kepplinger <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/media/platform/nxp/imx7-media-csi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/platform/nxp/imx7-media-csi.c b/drivers/media/platform/nxp/imx7-media-csi.c
index 112af7279ccf..45b29d312276 100644
--- a/drivers/media/platform/nxp/imx7-media-csi.c
+++ b/drivers/media/platform/nxp/imx7-media-csi.c
@@ -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)