Commit 75859ab1 authored by Alexandre Belloni's avatar Alexandre Belloni

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.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 6f693192
...@@ -439,14 +439,13 @@ static void ds1374_wdt_ping(void) ...@@ -439,14 +439,13 @@ static void ds1374_wdt_ping(void)
static void ds1374_wdt_disable(void) static void ds1374_wdt_disable(void)
{ {
int ret = -ENOIOCTLCMD;
int cr; int cr;
cr = i2c_smbus_read_byte_data(save_client, DS1374_REG_CR); cr = i2c_smbus_read_byte_data(save_client, DS1374_REG_CR);
/* Disable watchdog timer */ /* Disable watchdog timer */
cr &= ~DS1374_REG_CR_WACE; 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);
} }
/* /*
......
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