This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: ov5693: fix boolconv.cocci warnings
Author:  kernel test robot <[email protected]>
Date:    Wed Jan 19 06:24:42 2022 +0100

drivers/media/i2c/ov5693.c:989:46-51: WARNING: conversion to bool not needed 
here
drivers/media/i2c/ov5693.c:991:46-51: WARNING: conversion to bool not needed 
here

 Remove unneeded conversion to bool

Semantic patch information:
 Relational and logical operators evaluate to bool,
 explicit conversion is overly verbose and unneeded.

Generated by: scripts/coccinelle/misc/boolconv.cocci

[Sakari Ailus: Improved subject]

CC: Daniel Scally <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/i2c/ov5693.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c
index 2784fcf67f3b..4a5aa6e032f0 100644
--- a/drivers/media/i2c/ov5693.c
+++ b/drivers/media/i2c/ov5693.c
@@ -986,9 +986,9 @@ static int ov5693_set_fmt(struct v4l2_subdev *sd,
 
        mutex_lock(&ov5693->lock);
 
-       ov5693->mode.binning_x = hratio > 1 ? true : false;
+       ov5693->mode.binning_x = hratio > 1;
        ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1;
-       ov5693->mode.binning_y = vratio > 1 ? true : false;
+       ov5693->mode.binning_y = vratio > 1;
        ov5693->mode.inc_y_odd = vratio > 1 ? 3 : 1;
 
        ov5693->mode.vts = __ov5693_calc_vts(fmt->height);

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to