• Rolf Eike Beer's avatar
    [PATCH] Compaq PCI Hotplug: kill useless kmalloc casts · fc2efe47
    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.
    fc2efe47
cpqphp_ctrl.c 79.4 KB