summaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2009-04-12 20:18:40 +0200
committerSteve French <sfrench@us.ibm.com>2009-04-17 03:26:49 +0200
commitbc8cd4390c9129fbd286b10fa99972dfb68cd069 (patch)
tree1092fce44f8b785eb7be1b59d9c6215aa56d44c1 /fs/cifs/file.c
parent[CIFS] Add support for posix open during lookup (diff)
downloadlinux-bc8cd4390c9129fbd286b10fa99972dfb68cd069.tar.xz
linux-bc8cd4390c9129fbd286b10fa99972dfb68cd069.zip
[CIFS] Fix sparse warnings
Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com> CC: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 48c9ae09f3d6..50ca088d8860 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -307,11 +307,9 @@ int cifs_open(struct inode *inode, struct file *file)
rc = 0;
FreeXid(xid);
return rc;
- } else {
- if ((file->f_flags & O_CREAT) && (file->f_flags & O_EXCL))
+ } else if ((file->f_flags & O_CREAT) && (file->f_flags & O_EXCL))
cERROR(1, ("could not find file instance for "
"new file %p", file));
- }
full_path = build_path_from_dentry(file->f_path.dentry);
if (full_path == NULL) {