Skip to content

Commit

Permalink
gfs2: Remove pointless BUG_ON
Browse files Browse the repository at this point in the history
The current transaction is being dereferenced before asserting that is
not NULL; that isn't going to help.

Signed-off-by: Andreas Gruenbacher <[email protected]>
Signed-off-by: Bob Peterson <[email protected]>
  • Loading branch information
Andreas Gruenbacher authored and AstralBob committed Jan 17, 2018
1 parent 90bcab9 commit da5eb9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/gfs2/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit da5eb9c

Please sign in to comment.