summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-02 17:26:38 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-02 17:26:38 -0600
commitbe11f4038578d1f1f37ee3aa40913511af6c1b18 (patch)
tree5b36d0eaa1015f85e3e415fbb8055abf83b42139 /nuttx
parent9c84d7131b36c9845454c10d3afcf6c4a60b8fa8 (diff)
downloadpx4-nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.tar.gz
px4-nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.tar.bz2
px4-nuttx-be11f4038578d1f1f37ee3aa40913511af6c1b18.zip
Cosmetic. Fix some conditional logic in some conditioned out code
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/fs/vfs/fs_open.c2
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);