• Rolf Eike Beer's avatar
    [PATCH] PCI Hotplug: Remove type magic from kmalloc · 55b0d6dd
    Rolf Eike Beer authored
    This patch removes the cast of kmalloc's results to the target pointer type.
    Also it fixes kmalloc to use sizeof(*foo) instead of sizeof(type_of_foo) as
    suggested by Matthew Wilcox. Also removes a few useless checks if a pointer
    is NULL before calling kfree: kfree checks this itself.
    55b0d6dd
cpqphp_pci.c 39.7 KB