aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJianpeng Ma <jianpeng.ma@intel.com>2015-08-18 10:23:50 +0800
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 23:14:29 +0300
commita43137f7b0f1467cf3005b6ff6574d978642d247 (patch)
tree60ee42deef71e1709eea30ab9566441b7eceb406 /fs
parent1550d34e5626a20a2e12c73bdc1e6e217a0ba897 (diff)
ceph: remove the useless judgement
err != 0 is already handled. So skip this. Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com> Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 8b79d87eaf46..2ebcbd4c163b 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -279,7 +279,7 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
if (err)
goto out_req;
- if (err == 0 && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
+ if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
err = ceph_handle_notrace_create(dir, dentry);
if (d_unhashed(dentry)) {

Privacy Policy