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

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 <>
Signed-off-by: default avatarSteven Whitehouse <>
parent 0df1f248
......@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
if (error)
return error;
error = gfs2_dir_check(&dip->i_inode, name, ip);
if (error)
return error;
return 0;
return gfs2_dir_check(&dip->i_inode, name, ip);
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