Skip to content

Commit a43137f

Browse files
majianpengidryomov
authored andcommitted
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>
1 parent 1550d34 commit a43137f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
279279
if (err)
280280
goto out_req;
281281

282-
if (err == 0 && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
282+
if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
283283
err = ceph_handle_notrace_create(dir, dentry);
284284

285285
if (d_unhashed(dentry)) {

0 commit comments

Comments
 (0)