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:
guoshichao 2024-09-05 10:47:02 +08:00 committed by Xiang Xiao
parent 78e5fe3473
commit 203944b724
1 changed files with 1 additions and 1 deletions

View File

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