media: imx: imx7-media-csi: Drop unneeded check when starting streaming
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 27 Jan 2023 01:21:57 +0000 (02:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:05:27 +0000 (09:05 +0100)
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>
drivers/media/platform/nxp/imx7-media-csi.c

index 112af7279ccfec794908440b4b0c45ef60a22164..45b29d31227632fd86305451e0371c44b94b914b 100644 (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)