[PATCH] staging: media: atomisp: ov2722: clean up ov2722_startup()
From: Jack Lee
Date: Wed Apr 29 2026 - 19:41:34 EST
Remove stale TODO comment that has been present since the file
was first added to staging in 2017 and was never really acted on.
Also replace return ret with return 0 since ret is guaranteed
to be zero at that point, both write calls return early on
failure.
Signed-off-by: Jack Lee <skunkolee@xxxxxxxxx>
---
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
index 2c41c496daa6..fcd71cc55731 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
@@ -599,7 +599,6 @@ static int ov2722_s_power(struct v4l2_subdev *sd, int on)
return ret;
}
-/* TODO: remove it. */
static int ov2722_startup(struct v4l2_subdev *sd)
{
struct ov2722_device *dev = to_ov2722_sensor(sd);
@@ -619,7 +618,7 @@ static int ov2722_startup(struct v4l2_subdev *sd)
return ret;
}
- return ret;
+ return 0;
}
static int ov2722_set_fmt(struct v4l2_subdev *sd,
--
2.54.0