[PATCH] staging: media: atomisp: ov2722: clean up ov2722_startup()

Jack Lee posted 1 patch 1 month, 2 weeks ago
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] staging: media: atomisp: ov2722: clean up ov2722_startup()
Posted by Jack Lee 1 month, 2 weeks ago
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@gmail.com>
---
 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
Re: [PATCH] staging: media: atomisp: ov2722: clean up ov2722_startup()
Posted by Andy Shevchenko 1 month, 2 weeks ago
On Wed, Apr 29, 2026 at 05:41:06PM -0600, Jack Lee wrote:
> 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.

NAK. This is not a real change. It has no value on itself.
Moreover, it removes a comment without actually addressing it.

-- 
With Best Regards,
Andy Shevchenko