summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-14 21:10:57 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-17 13:13:38 +0200
commitc4a1d392acfeaa30995ded1098b69c3f414a85fc (patch)
tree1938506560a28553cb2c5533f2822718de91245d /drivers/media
parentmedia: rkisp1: csi: Constify argument to rkisp1_csi_start() (diff)
downloadlinux-c4a1d392acfeaa30995ded1098b69c3f414a85fc.tar.xz
linux-c4a1d392acfeaa30995ded1098b69c3f414a85fc.zip
media: rkisp1: isp: Don't initialize ret to 0 in rkisp1_isp_s_stream()
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
index da895f6aa3fa..faf80197edbf 100644
--- a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
+++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c
@@ -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,