media: rkisp1: isp: Don't initialize ret to 0 in rkisp1_isp_s_stream()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 14 Jun 2022 19:10:57 +0000 (20:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 17 Jul 2022 11:13:38 +0000 (12:13 +0100)
The ret variable doesn't need to be initialized in
rkisp1_isp_s_stream().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c

index da895f6aa3fa88a47fa6230d085f2e5efa9f9298..faf80197edbf0083efb4a4db84e68da0e10bac3b 100644 (file)
@@ -751,7 +751,7 @@ static int rkisp1_isp_s_stream(struct v4l2_subdev *sd, int enable)
                container_of(sd->v4l2_dev, struct rkisp1_device, v4l2_dev);
        struct rkisp1_isp *isp = &rkisp1->isp;
        struct v4l2_subdev *sensor_sd;
-       int ret = 0;
+       int ret;
 
        if (!enable) {
                v4l2_subdev_call(rkisp1->active_sensor->sd, video, s_stream,