summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2017-12-12 16:32:48 +0300
committerBob Peterson <rpeterso@redhat.com>2018-01-17 16:35:35 +0300
commitda5eb9cdda2917b44dc9da7c8811d0db29f6b201 (patch)
tree61f63cf7b34efc0215fd6877e46b8ad35c3c2a97
parent90bcab998dcadc8a1515994b558da10631298bf3 (diff)
downloadlinux-da5eb9cdda2917b44dc9da7c8811d0db29f6b201.tar.xz
gfs2: Remove pointless BUG_ON
The current transaction is being dereferenced before asserting that is not NULL; that isn't going to help. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
-rw-r--r--fs/gfs2/trans.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c
index ca8b72d0a831..b95ebd166cac 100644
--- a/fs/gfs2/trans.c
+++ b/fs/gfs2/trans.c
@@ -92,7 +92,6 @@ void gfs2_trans_end(struct gfs2_sbd *sdp)
s64 nbuf;
int alloced = test_bit(TR_ALLOCED, &tr->tr_flags);
- BUG_ON(!tr);
current->journal_info = NULL;
if (!test_bit(TR_TOUCHED, &tr->tr_flags)) {