On Sat May 17 13:40:56 2025 +0200, Hans de Goede wrote:
> is_streaming is only set and never read, drop it.
> 
> Signed-off-by: Hans de Goede <ha...@kernel.org>
> Reviewed-by: Andy Shevchenko <a...@kernel.org>
> Link: https://lore.kernel.org/r/20250517114106.43494-14-ha...@kernel.org
> Signed-off-by: Mauro Carvalho Chehab <mchehab+hua...@kernel.org>

Patch committed.

Thanks,
Mauro Carvalho Chehab

 drivers/staging/media/atomisp/i2c/atomisp-gc0310.c | 3 ---
 1 file changed, 3 deletions(-)

---

diff --git a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c 
b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c
index c89b3e9e3343..c6a0bc746d32 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c
@@ -88,7 +88,6 @@ struct gc0310_device {
        struct media_pad pad;
        /* Protect against concurrent changes to controls */
        struct mutex input_lock;
-       bool is_streaming;
 
        struct regmap *regmap;
        struct gpio_desc *reset;
@@ -507,13 +506,11 @@ static int gc0310_s_stream(struct v4l2_subdev *sd, int 
enable)
        if (!enable)
                pm_runtime_put(&client->dev);
 
-       sensor->is_streaming = enable;
        mutex_unlock(&sensor->input_lock);
        return 0;
 
 error_power_down:
        pm_runtime_put(&client->dev);
-       sensor->is_streaming = false;
        mutex_unlock(&sensor->input_lock);
        return ret;
 }

Reply via email to