rtc: ds1374: remove unused variable
Fix warning: drivers/rtc/rtc-ds1374.c: In function ‘ds1374_wdt_disable’: drivers/rtc/rtc-ds1374.c:442:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Link: https://lore.kernel.org/r/20191122102212.400158-3-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
6f6931928f
commit
75859ab1e7
@ -439,14 +439,13 @@ static void ds1374_wdt_ping(void)
|
||||
|
||||
static void ds1374_wdt_disable(void)
|
||||
{
|
||||
int ret = -ENOIOCTLCMD;
|
||||
int cr;
|
||||
|
||||
cr = i2c_smbus_read_byte_data(save_client, DS1374_REG_CR);
|
||||
/* Disable watchdog timer */
|
||||
cr &= ~DS1374_REG_CR_WACE;
|
||||
|
||||
ret = i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr);
|
||||
i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user