diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-02 17:26:38 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-02 17:26:38 -0600 |
commit | be11f4038578d1f1f37ee3aa40913511af6c1b18 (patch) | |
tree | 5b36d0eaa1015f85e3e415fbb8055abf83b42139 /nuttx/fs/vfs | |
parent | 9c84d7131b36c9845454c10d3afcf6c4a60b8fa8 (diff) | |
download | nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.tar.gz nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.tar.bz2 nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.zip |
Cosmetic. Fix some conditional logic in some conditioned out code
Diffstat (limited to 'nuttx/fs/vfs')
-rw-r--r-- | nuttx/fs/vfs/fs_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/vfs/fs_open.c b/nuttx/fs/vfs/fs_open.c index fd6562ac3..1fb0cb538 100644 --- a/nuttx/fs/vfs/fs_open.c +++ b/nuttx/fs/vfs/fs_open.c @@ -107,7 +107,7 @@ int open(const char *path, int oflags, ...) /* If the file is opened for creation, then get the mode bits */ - if (oflags & (O_WRONLY|O_CREAT) != 0) + if ((oflags & (O_WRONLY|O_CREAT)) != 0) { va_list ap; va_start(ap, oflags); |