Commit 37975f15 authored by Fabian Frederick's avatar Fabian Frederick Committed by Steven Whitehouse

GFS2: directly return gfs2_dir_check()

No need to store gfs2_dir_check result and test it before returning.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 0df1f248
...@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, ...@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
if (error) if (error)
return error; return error;
error = gfs2_dir_check(&dip->i_inode, name, ip); return gfs2_dir_check(&dip->i_inode, name, ip);
if (error)
return error;
return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment