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:
parent
78e5fe3473
commit
203944b724
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue