hw23: removed unused parameter and casted return code correctly
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
b54f9487ff
commit
7c087e3930
|
|
@ -36,7 +36,6 @@ void da9063_init(void)
|
||||||
uint32_t da9063_get_init_count(void)
|
uint32_t da9063_get_init_count(void)
|
||||||
{
|
{
|
||||||
sc_err_t ret;
|
sc_err_t ret;
|
||||||
uint8_t read = 1;
|
|
||||||
uint32_t param1 = 0xff; // workaround to differ between reboot and watchdog reset
|
uint32_t param1 = 0xff; // workaround to differ between reboot and watchdog reset
|
||||||
uint32_t data = 0;
|
uint32_t data = 0;
|
||||||
uint32_t data_len = 1;
|
uint32_t data_len = 1;
|
||||||
|
|
@ -44,7 +43,7 @@ uint32_t da9063_get_init_count(void)
|
||||||
ret = sc_misc_board_ioctl(ipc, ¶m1, &data, &data_len);
|
ret = sc_misc_board_ioctl(ipc, ¶m1, &data, &data_len);
|
||||||
if (ret != SC_ERR_NONE) {
|
if (ret != SC_ERR_NONE) {
|
||||||
printf("IPC getting init count failed with error: %d\n", ret);
|
printf("IPC getting init count failed with error: %d\n", ret);
|
||||||
return -1;
|
return (uint32_t)-1;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue