diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-10-07 23:25:16 +0200 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-14 02:02:44 +0200 |
commit | a81cb88b64a479b78c6dd5666678d50171865db8 (patch) | |
tree | 9fe0f67e30d7c70d43785827e57736ac01558c24 /fs/ocfs2/inode.c | |
parent | ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache (diff) | |
download | linux-a81cb88b64a479b78c6dd5666678d50171865db8.tar.xz linux-a81cb88b64a479b78c6dd5666678d50171865db8.zip |
ocfs2: Don't check for NULL before brelse()
This is pointless as brelse() already does the check.
Signed-off-by: Mark Fasheh
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 9d92c859ac94..05ad1186a167 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c @@ -1174,10 +1174,9 @@ struct buffer_head *ocfs2_bread(struct inode *inode, return bh; fail: - if (bh) { - brelse(bh); - bh = NULL; - } + brelse(bh); + bh = NULL; + *err = -EIO; return NULL; } |