question about drivers/macintosh/windfarm_pm91.c

Julia Lawall julia at diku.dk
Mon Mar 29 02:48:46 EST 2010


The function wf_smu_remove in the file drivers/macintosh/windfarm_pm91.c 
ends with the following code:

        if (wf_smu_slots_fans)
                kfree(wf_smu_cpu_fans);
	if (wf_smu_drive_fans)
                kfree(wf_smu_cpu_fans);
        if (wf_smu_cpu_fans)
                kfree(wf_smu_cpu_fans);

This looks quite strange.  Is it supposed to be if (x) kfree(x); in each 
case?

julia


More information about the Linuxppc-dev mailing list