Skip to content

Commit 75859ab

Browse files
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/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 6f69319 commit 75859ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/rtc/rtc-ds1374.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,13 @@ static void ds1374_wdt_ping(void)
439439

440440
static void ds1374_wdt_disable(void)
441441
{
442-
int ret = -ENOIOCTLCMD;
443442
int cr;
444443

445444
cr = i2c_smbus_read_byte_data(save_client, DS1374_REG_CR);
446445
/* Disable watchdog timer */
447446
cr &= ~DS1374_REG_CR_WACE;
448447

449-
ret = i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr);
448+
i2c_smbus_write_byte_data(save_client, DS1374_REG_CR, cr);
450449
}
451450

452451
/*

0 commit comments

Comments
 (0)