commit | a81cb88b64a479b78c6dd5666678d50171865db8 | [log] [tgz] |
---|---|---|
author | Mark Fasheh <mfasheh@suse.com> | Tue Oct 07 14:25:16 2008 -0700 |
committer | Mark Fasheh <mfasheh@suse.com> | Mon Oct 13 17:02:44 2008 -0700 |
tree | 9fe0f67e30d7c70d43785827e57736ac01558c24 | |
parent | fd8351f83d413b41da956109cf429c15881886e2 [diff] [blame] |
ocfs2: Don't check for NULL before brelse() This is pointless as brelse() already does the check. Signed-off-by: Mark Fasheh
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 9d92c85..05ad118 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c
@@ -1174,10 +1174,9 @@ return bh; fail: - if (bh) { - brelse(bh); - bh = NULL; - } + brelse(bh); + bh = NULL; + *err = -EIO; return NULL; }