diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-01-27 02:21:57 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-02-08 09:05:27 +0100 |
commit | db56a4fb6923a37b437a9806189d13c89c38448b (patch) | |
tree | 15842e46c512d322455cecda71e577ea6e8c2737 /drivers/media/platform/nxp | |
parent | bc0d3df31ffe87d3162710adc5a6ad0f3744b066 (diff) | |
download | linux-stable-db56a4fb6923a37b437a9806189d13c89c38448b.tar.gz linux-stable-db56a4fb6923a37b437a9806189d13c89c38448b.tar.bz2 linux-stable-db56a4fb6923a37b437a9806189d13c89c38448b.zip |
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>
Diffstat (limited to 'drivers/media/platform/nxp')
-rw-r--r-- | drivers/media/platform/nxp/imx7-media-csi.c | 3 |
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) |