Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/hwinfo/hwinfo_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer)
int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause)
{
int ret;
uint32_t cause_copy;
uint32_t cause_copy = 0U;

ret = z_impl_hwinfo_get_reset_cause(&cause_copy);
K_OOPS(k_usermode_to_copy(cause, &cause_copy, sizeof(uint32_t)));
Expand All @@ -45,7 +45,7 @@ int z_vrfy_hwinfo_clear_reset_cause(void)
int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported)
{
int ret;
uint32_t supported_copy;
uint32_t supported_copy = 0U;

ret = z_impl_hwinfo_get_supported_reset_cause(&supported_copy);
K_OOPS(k_usermode_to_copy(supported, &supported_copy, sizeof(uint32_t)));
Expand Down
Loading