]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: atomisp: gc0310: Remove unused is_streaming variable
authorHans de Goede <hansg@kernel.org>
Sat, 17 May 2025 11:40:56 +0000 (13:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jul 2025 06:43:30 +0000 (08:43 +0200)
is_streaming is only set and never read, drop it.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250517114106.43494-14-hansg@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c

index c89b3e9e3343230971916cc34a298022d95ed78c..c6a0bc746d32a40420cdd26012c6ee4e63bb31f6 100644 (file)
@@ -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;
 }