From: Andreas Gruenbacher Date: Fri, 22 Dec 2017 15:34:57 +0100 Subject: [Cluster-devel] [PATCH 02/12] gfs2: Remove pointless BUG_ON In-Reply-To: <20171222143507.26680-1-agruenba@redhat.com> References: <20171222143507.26680-1-agruenba@redhat.com> Message-ID: <20171222143507.26680-3-agruenba@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The current transaction is being dereferenced before asserting that is not NULL; that isn't going to help. Signed-off-by: Andreas Gruenbacher --- fs/gfs2/trans.c | 1 - 1 file changed, 1 deletion(-) 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)) { -- 2.14.3