mmap: Fix note: initialize the variable 'ret'

This commit is contained in:
Alan C. Assis 2021-08-10 11:05:14 -03:00 committed by Xiang Xiao
parent f3d1b6342c
commit 9d79f82e24

View File

@ -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;
}