From 839d3f22045fef197cded6f3067ba5b2398d09b2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 2 Nov 2014 17:26:38 -0600 Subject: [PATCH] Cosmetic. Fix some conditional logic in some conditioned out code --- fs/vfs/fs_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/vfs/fs_open.c b/fs/vfs/fs_open.c index fd6562ac3d..1fb0cb538a 100644 --- a/fs/vfs/fs_open.c +++ b/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);