Thread (4 messages) 4 messages, 3 authors, 2005-10-14

Re: [PATCH 01/14] Big kfree NULL check cleanup - net

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2005-10-14 10:00:43
Also in: lkml

Hi Jesper,
This is the net/ part of the big kfree cleanup patch.

Remove pointless checks for NULL prior to calling kfree() in net/.


Sorry about the long Cc: list, but I wanted to make sure I included everyone
who's code I've changed with this patch.
you forgot me ;)
quoted hunk ↗ jump to hunk
--- linux-2.6.14-rc4-orig/net/bluetooth/hidp/core.c	2005-08-29 01:41:01.000000000 +0200
+++ linux-2.6.14-rc4/net/bluetooth/hidp/core.c	2005-10-13 11:47:49.000000000 +0200
@@ -657,9 +657,7 @@ unlink:
 failed:
 	up_write(&hidp_session_sem);
 
-	if (session->input)
-		kfree(session->input);
-
+	kfree(session->input);
 	kfree(session);
 	return err;
 }
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help