From 203944b7240d9c0a5deeb71a925688449024ced2 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 5 Sep 2024 10:47:02 +0800 Subject: [PATCH] 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 --- fs/vfs/fs_fcntl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/vfs/fs_fcntl.c b/fs/vfs/fs_fcntl.c index 44bdcd6652..e2c9fe6376 100644 --- a/fs/vfs/fs_fcntl.c +++ b/fs/vfs/fs_fcntl.c @@ -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); } } }