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:
parent
0df1f2487d
commit
37975f1503
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue