mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
fs_fcntl: fix the ret value not check error
add ret value check on file_seek function to compat with misra rule Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ static int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
||||
|
||||
if ((filep->f_oflags & O_APPEND) != 0)
|
||||
{
|
||||
file_seek(filep, 0, SEEK_END);
|
||||
ret = file_seek(filep, 0, SEEK_END);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user