Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a43137f7 authored by Jianpeng Ma's avatar Jianpeng Ma Committed by Ilya Dryomov
Browse files

ceph: remove the useless judgement



err != 0 is already handled. So skip this.

Signed-off-by: default avatarJianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 1550d34e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {