diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-09 16:49:21 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-11-03 14:23:32 -0500 |
commit | 37975f1503715c51c1a2484b8aba2700a23e6b56 (patch) | |
tree | 9e19cdfe6f2e5516d1d4aca35d907abeaf0f3d70 /fs/gfs2 | |
parent | 0df1f2487d2f0d04703f142813d53615d62a1da4 (diff) |
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/inode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index c4ed823d150e..b41b5c7898da 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -1045,11 +1045,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, | |||
1045 | if (error) | 1045 | if (error) |
1046 | return error; | 1046 | return error; |
1047 | 1047 | ||
1048 | error = gfs2_dir_check(&dip->i_inode, name, ip); | 1048 | return gfs2_dir_check(&dip->i_inode, name, ip); |
1049 | if (error) | ||
1050 | return error; | ||
1051 | |||
1052 | return 0; | ||
1053 | } | 1049 | } |
1054 | 1050 | ||
1055 | /** | 1051 | /** |