Skip to content

Commit

Permalink
ceph: remove the useless judgement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jianpeng Ma authored and Ilya Dryomov committed Sep 8, 2015
1 parent 1550d34 commit a43137f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a43137f

Please sign in to comment.