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

media: lm3646: remove redundant assignment to variable rval

The variable rval is being initialized with a value that
is never read and is being re-assigned a little later on. The
assignment is redundant and hence can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Colin Ian King and committed by
Mauro Carvalho Chehab
ecfaec43 fdd5b6e3

+1 -1
+1 -1
drivers/media/i2c/lm3646.c
··· 134 134 { 135 135 struct lm3646_flash *flash = to_lm3646_flash(ctrl); 136 136 unsigned int reg_val; 137 - int rval = -EINVAL; 137 + int rval; 138 138 139 139 switch (ctrl->id) { 140 140 case V4L2_CID_FLASH_LED_MODE: