vfs/fcntl: Minor style fix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
05cc6fb610
commit
f14eed6432
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user