GFS2: directly return gfs2_dir_check()

No need to store gfs2_dir_check result and test it before returning.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
Fabian Frederick 2014-10-09 22:49:21 +02:00 committed by Steven Whitehouse
parent 0df1f2487d
commit 37975f1503
1 changed files with 1 additions and 5 deletions

View File

@ -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);
}
/**