summaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/nodemgr.c
diff options
context:
space:
mode:
authorJody McIntyre2005-05-17 06:54:01 +0200
committerLinus Torvalds2005-05-17 16:59:23 +0200
commit616b859fbd0e59707a24612d5b5fec791156c822 (patch)
tree2c58dbdfc262006886ac25a8d56c973b4f6a6772 /drivers/ieee1394/nodemgr.c
parent[PATCH] ieee1394: drivers/ieee1394/ieee1394_transactions.c: possible cleanups (diff)
downloadkernel-qcow2-linux-616b859fbd0e59707a24612d5b5fec791156c822.tar.gz
kernel-qcow2-linux-616b859fbd0e59707a24612d5b5fec791156c822.tar.xz
kernel-qcow2-linux-616b859fbd0e59707a24612d5b5fec791156c822.zip
[PATCH] ieee1394: remove NULL checks for kfree
This patch removes redundant NULL pointer checks before kfree() in all of drivers/ieee1394/ Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Jody McIntyre <scjody@steamballoon.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ieee1394/nodemgr.c')
-rw-r--r--drivers/ieee1394/nodemgr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c
index a1e30a66297b..83e66ed97ab5 100644
--- a/drivers/ieee1394/nodemgr.c
+++ b/drivers/ieee1394/nodemgr.c
@@ -1005,8 +1005,7 @@ static struct unit_directory *nodemgr_process_unit_directory
return ud;
unit_directory_error:
- if (ud != NULL)
- kfree(ud);
+ kfree(ud);
return NULL;
}