fs/mmap: Fixed compiler warning about access to uninitialized variable in rammap(...)

This commit is contained in:
Dmitriy Linikov
2018-03-15 14:44:34 -06:00
committed by Gregory Nutt
parent eb4539c305
commit f0ad45ee27
+1 -1
View File
@@ -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;
}
}