[PATCH] jbd: Remove redundant NULL check upon kfree()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Davidlohr Bueso
Date: Wednesday, August 11, 2010 - 6:00 am

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] jbd: Remove redundant NULL check upon kfree(), Davidlohr Bueso, (Wed Aug 11, 6:00 am)
Re: [PATCH] jbd: Remove redundant NULL check upon kfree(), Davidlohr Bueso, (Wed Aug 11, 6:11 am)