summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorxiaoniaoyou6hua <[email protected]>2023-04-22 09:25:52 +0800
committerGitHub <[email protected]>2023-04-22 09:25:52 +0800
commit4f1c3a1472e3ffc550a3c51d1346b2b202e7c5ad (patch)
treeab3eafb85d6ba3dfaa112ac7bca6a3bfbd569c83 /components
parentfd1413d29bc68e6663f656c12e798300967bbb3f (diff)
fix warning (#7340)
Diffstat (limited to 'components')
-rw-r--r--components/mm/mm_fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/mm/mm_fault.c b/components/mm/mm_fault.c
index 29b540f0f4..e904e2b5a4 100644
--- a/components/mm/mm_fault.c
+++ b/components/mm/mm_fault.c
@@ -28,7 +28,7 @@
static int _fetch_page(rt_varea_t varea, struct rt_aspace_fault_msg *msg)
{
- int err;
+ int err = UNRECOVERABLE;
msg->response.status = MM_FAULT_STATUS_UNRECOVERABLE;
msg->response.vaddr = 0;
msg->response.size = 0;