From: Andreas Gruenbacher Date: Tue, 12 Dec 2017 13:32:48 +0000 (+0100) Subject: gfs2: Remove pointless BUG_ON X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=da5eb9cdda2917b44dc9da7c8811d0db29f6b201;p=linux.git 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 Signed-off-by: Bob Peterson --- diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index ca8b72d0a8315..b95ebd166cac1 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)) {