linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* question about drivers/macintosh/windfarm_pm91.c
@ 2010-03-28 15:48 Julia Lawall
  2010-03-28 21:08 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2010-03-28 15:48 UTC (permalink / raw)
  To: benh, linuxppc-dev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-28 23:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-28 15:48 question about drivers/macintosh/windfarm_pm91.c Julia Lawall
2010-03-28 21:08 ` Benjamin Herrenschmidt
2010-03-28 21:56   ` Julia Lawall
2010-03-28 23:07     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).