]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: v3020: remove redundant initialization of variable retval
authorColin Ian King <colin.king@canonical.com>
Wed, 9 Jun 2021 12:00:50 +0000 (13:00 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 20 Jun 2021 20:29:50 +0000 (22:29 +0200)
commite53b9f5757deff9e211564d861708bf805e3a78f
treed732a6b0d3abc1f3ae399a04fba5b3010ff6dd48
parentef1a5c3c447fa60895b526773f6f99cadc1cf9eb
rtc: v3020: remove redundant initialization of variable retval

The variable retval is being initialized with a value that is never read,
it is being updated later on. The assignment is redundant and can be
removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210609120050.185746-1-colin.king@canonical.com
drivers/rtc/rtc-v3020.c