Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: ov5693: fix boolconv.cocci warnings

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 <djrscally@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

kernel test robot and committed by
Mauro Carvalho Chehab
2a7f8142 7be91e02

+2 -2
+2 -2
drivers/media/i2c/ov5693.c
··· 986 986 987 987 mutex_lock(&ov5693->lock); 988 988 989 - ov5693->mode.binning_x = hratio > 1 ? true : false; 989 + ov5693->mode.binning_x = hratio > 1; 990 990 ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1; 991 - ov5693->mode.binning_y = vratio > 1 ? true : false; 991 + ov5693->mode.binning_y = vratio > 1; 992 992 ov5693->mode.inc_y_odd = vratio > 1 ? 3 : 1; 993 993 994 994 ov5693->mode.vts = __ov5693_calc_vts(fmt->height);