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 returnvar.cocci warnings

drivers/media/i2c/ov5693.c:953:5-8: Unneeded variable: "ret". Return "0" on line 985

Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.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
1949c01e 2a7f8142

+2 -3
+2 -3
drivers/media/i2c/ov5693.c
··· 950 950 unsigned int width, height; 951 951 unsigned int hblank; 952 952 int exposure_max; 953 - int ret = 0; 954 953 955 954 crop = __ov5693_get_pad_crop(ov5693, state, format->pad, format->which); 956 955 ··· 981 982 format->format = *fmt; 982 983 983 984 if (format->which == V4L2_SUBDEV_FORMAT_TRY) 984 - return ret; 985 + return 0; 985 986 986 987 mutex_lock(&ov5693->lock); 987 988 ··· 1011 1012 exposure_max)); 1012 1013 1013 1014 mutex_unlock(&ov5693->lock); 1014 - return ret; 1015 + return 0; 1015 1016 } 1016 1017 1017 1018 static int ov5693_get_selection(struct v4l2_subdev *sd,