Commit 3edf29d9 authored by Colin Ian King's avatar Colin Ian King Committed by Alexandre Belloni

rtc: class: remove redundant assignment to variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200402110411.508534-1-colin.king@canonical.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 6487a801
......@@ -48,7 +48,7 @@ int rtc_hctosys_ret = -ENODEV;
static void rtc_hctosys(struct rtc_device *rtc)
{
int err = -ENODEV;
int err;
struct rtc_time tm;
struct timespec64 tv64 = {
.tv_nsec = NSEC_PER_SEC >> 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment