linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] jbd: Remove redundant NULL check upon kfree()
@ 2010-08-11 13:00 Davidlohr Bueso
  2010-08-11 13:06 ` Jiri Kosina
  0 siblings, 1 reply; 3+ messages in thread
From: Davidlohr Bueso @ 2010-08-11 13:00 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-fsdevel, LKML

jbd: Remove redundant NULL check upon kfree().

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 fs/jbd/transaction.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c
index 5ae71e7..5e98130 100644
--- a/fs/jbd/transaction.c
+++ b/fs/jbd/transaction.c
@@ -232,8 +232,7 @@ repeat_locked:
 
 	lock_map_acquire(&handle->h_lockdep_map);
 out:
-	if (unlikely(new_transaction))		/* It's usually NULL */
-		kfree(new_transaction);
+	kfree(new_transaction);
 	return ret;
 }
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-11 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11 13:00 [PATCH] jbd: Remove redundant NULL check upon kfree() Davidlohr Bueso
2010-08-11 13:06 ` Jiri Kosina
2010-08-11 13:11   ` Davidlohr Bueso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).