mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
mmap: Fix note: initialize the variable 'ret'
This commit is contained in:
committed by
Xiang Xiao
parent
f3d1b6342c
commit
9d79f82e24
+1
-1
@@ -117,7 +117,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
|
||||
*mapped = kernel ? kmm_zalloc(length) : kumm_zalloc(length);
|
||||
if (*mapped == NULL)
|
||||
{
|
||||
ferr("ERROR: kumm_alloc() failed: %d\n", ret);
|
||||
ferr("ERROR: kumm_alloc() failed, enable DEBUG_MM for info!\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user