From f14eed6432bb7a7d1718941bc0364b438dcd52ad Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 11 Apr 2022 18:33:54 +0800 Subject: [PATCH] vfs/fcntl: Minor style fix Signed-off-by: Xiang Xiao --- 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 f796fa5b23..64c244970f 100644 --- a/fs/vfs/fs_fcntl.c +++ b/fs/vfs/fs_fcntl.c @@ -151,7 +151,7 @@ static int file_vfcntl(FAR struct file *filep, int cmd, va_list ap) filep->f_oflags &= ~(FFCNTL & ~O_NONBLOCK); filep->f_oflags |= oflags; - if (filep->f_oflags & O_APPEND) + if ((filep->f_oflags & O_APPEND) != 0) { file_seek(filep, 0, SEEK_END); }