vfs/fcntl: Minor style fix

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-11 18:33:54 +08:00 committed by Petro Karashchenko
parent 05cc6fb610
commit f14eed6432

View File

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