summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/symlink.c
diff options
context:
space:
mode:
authorMark Fasheh2008-10-07 23:25:16 +0200
committerMark Fasheh2008-10-14 02:02:44 +0200
commita81cb88b64a479b78c6dd5666678d50171865db8 (patch)
tree9fe0f67e30d7c70d43785827e57736ac01558c24 /fs/ocfs2/symlink.c
parentocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache (diff)
downloadkernel-qcow2-linux-a81cb88b64a479b78c6dd5666678d50171865db8.tar.gz
kernel-qcow2-linux-a81cb88b64a479b78c6dd5666678d50171865db8.tar.xz
kernel-qcow2-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/symlink.c')
-rw-r--r--fs/ocfs2/symlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/symlink.c b/fs/ocfs2/symlink.c
index 8c5879c7f846..c6c94b55774f 100644
--- a/fs/ocfs2/symlink.c
+++ b/fs/ocfs2/symlink.c
@@ -158,8 +158,7 @@ bail:
kunmap(page);
page_cache_release(page);
}
- if (bh)
- brelse(bh);
+ brelse(bh);
return ERR_PTR(status);
}