diff mbox series

media: i2c: ov5693: Drop the unused streaming flag

Message ID 20230914174508.785-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit 165457e6d084c308dd9399a04c71ee85bb28d300
Headers show
Series media: i2c: ov5693: Drop the unused streaming flag | expand

Commit Message

Laurent Pinchart Sept. 14, 2023, 5:45 p.m. UTC
The streaming flag in the driver's private structure is set but never
used. Drop it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/i2c/ov5693.c | 3 ---
 1 file changed, 3 deletions(-)


base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
prerequisite-patch-id: e46ede71d8cba61ae5bf7721eb35338b9e2d36d0
prerequisite-patch-id: 4cfba8929058f17ab103d38ea1b447126e645935

Comments

Tommaso Merciai Sept. 15, 2023, 8:58 a.m. UTC | #1
Hi Laurent,

On Thu, Sep 14, 2023 at 08:45:08PM +0300, Laurent Pinchart wrote:
> The streaming flag in the driver's private structure is set but never
> used. Drop it.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  drivers/media/i2c/ov5693.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c
> index 488ee6d9d301..d6836725ced7 100644
> --- a/drivers/media/i2c/ov5693.c
> +++ b/drivers/media/i2c/ov5693.c
> @@ -154,7 +154,6 @@ struct ov5693_device {
>  		unsigned int inc_y_odd;
>  		unsigned int vts;
>  	} mode;
> -	bool streaming;
>  
>  	struct v4l2_subdev sd;
>  	struct media_pad pad;
> @@ -996,8 +995,6 @@ static int ov5693_s_stream(struct v4l2_subdev *sd, int enable)
>  	if (ret)
>  		goto err_power_down;
>  
> -	ov5693->streaming = !!enable;
> -
>  	if (!enable)
>  		pm_runtime_put(ov5693->dev);
>  
> 
> base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
> prerequisite-patch-id: e46ede71d8cba61ae5bf7721eb35338b9e2d36d0
> prerequisite-patch-id: 4cfba8929058f17ab103d38ea1b447126e645935
> -- 
> Regards,
> 
> Laurent Pinchart
> 

Looks good to me, thanks!
Reviewed-by: Tommaso Merciai <tomm.merciai@gmail.com>

Regards,
Tommaso
diff mbox series

Patch

diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c
index 488ee6d9d301..d6836725ced7 100644
--- a/drivers/media/i2c/ov5693.c
+++ b/drivers/media/i2c/ov5693.c
@@ -154,7 +154,6 @@  struct ov5693_device {
 		unsigned int inc_y_odd;
 		unsigned int vts;
 	} mode;
-	bool streaming;
 
 	struct v4l2_subdev sd;
 	struct media_pad pad;
@@ -996,8 +995,6 @@  static int ov5693_s_stream(struct v4l2_subdev *sd, int enable)
 	if (ret)
 		goto err_power_down;
 
-	ov5693->streaming = !!enable;
-
 	if (!enable)
 		pm_runtime_put(ov5693->dev);