fs/mmap: Fixed compiler warning about access to uninitialized variable in rammap(...)
This commit is contained in:
parent
eb4539c305
commit
f0ad45ee27
@ -189,7 +189,7 @@ FAR void *rammap(int fd, size_t length, off_t offset)
|
||||
ferr("ERROR: Read failed: offset=%d errno=%d\n",
|
||||
(int)offset, (int)nread);
|
||||
|
||||
errcode = (int)-ret;
|
||||
errcode = (int)-nread;
|
||||
goto errout_with_region;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user