[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>
This commit is contained in:
committed by
Linus Torvalds
parent
9ac485dc37
commit
616b859fbd
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user