X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=fs%2Fcifs%2Ffile.c;h=50ca088d8860665e5ed5e128a899101ec08a007a;hb=595947acaaef373445131471a78650003f5d8e7d;hp=48c9ae09f3d6e6afa13a8a08b10eec04372017d8;hpb=a6ce4932fbdbcd8f8e8c6df76812014351c32892;p=safe%2Fjmp%2Flinux-2.6 diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 48c9ae0..50ca088 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) {