hw23: removed unused parameter and casted return code correctly

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-09-15 13:01:07 +02:00
parent b54f9487ff
commit 7c087e3930
1 changed files with 1 additions and 2 deletions

View File

@ -36,7 +36,6 @@ void da9063_init(void)
uint32_t da9063_get_init_count(void)
{
sc_err_t ret;
uint8_t read = 1;
uint32_t param1 = 0xff; // workaround to differ between reboot and watchdog reset
uint32_t data = 0;
uint32_t data_len = 1;
@ -44,7 +43,7 @@ uint32_t da9063_get_init_count(void)
ret = sc_misc_board_ioctl(ipc, &param1, &data, &data_len);
if (ret != SC_ERR_NONE) {
printf("IPC getting init count failed with error: %d\n", ret);
return -1;
return (uint32_t)-1;
}
return data;
}