Commit 6ba7aa80 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: don't check pointer before kalling kfree in ibmphp_pci.c

Calling kfree() with a NULL pointer is no error so we don't need this check.
Signed-off-by: default avatarRolf Eike Beer <eike-hotplug@sf-tec.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent fdc32d15
...@@ -1062,8 +1062,7 @@ static int configure_bridge (struct pci_func **func_passed, u8 slotno) ...@@ -1062,8 +1062,7 @@ static int configure_bridge (struct pci_func **func_passed, u8 slotno)
} }
error: error:
if (amount_needed) kfree(amount_needed);
kfree (amount_needed);
if (pfmem) if (pfmem)
ibmphp_remove_resource (pfmem); ibmphp_remove_resource (pfmem);
if (io) if (io)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment