Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95eff20f authored by Jesper Juhl's avatar Jesper Juhl Committed by Paul Mackerras
Browse files

[PATCH] Don't check pointer for NULL before passing it to kfree [arch/powerpc/kernel/rtas_flash.c]



Checking a pointer for NULL before passing it to kfree is pointless, kfree
does its own NULL checking of input.

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 4009d980
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -672,7 +672,6 @@ static void rtas_flash_firmware(int reboot_type)
static void remove_flash_pde(struct proc_dir_entry *dp)
{
	if (dp) {
		if (dp->data != NULL)
		kfree(dp->data);
		dp->owner = NULL;
		remove_proc_entry(dp->name, dp->parent);