Julia Lawall 73f38fe1b5 drivers/macintosh/smu.c: Improve error handling
This makes two changes:

* As noted by Akinobu Mita in patch
b1fceac2b9e04d278316b2faddf276015fc06e3b, alloc_bootmem never returns NULL
and always returns a zeroed region of memory.  Thus the error checking code
and memset after the call to alloc_bootmem are not necessary.

* The old error handling code consisted of setting a global variable to
NULL and returning an error code, which could cause previously allocated
resources never to be freed.  The patch adds calls to appropriate resource
deallocation functions.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-07-01 11:28:17 +10:00
..
2008-06-11 16:50:40 -07:00
2008-06-12 18:05:40 -07:00
2008-05-24 09:56:11 -07:00
2008-05-20 16:44:43 +02:00
2008-06-20 20:53:35 +02:00
2008-06-19 00:12:36 +02:00
2008-05-20 13:31:55 -07:00
2008-04-29 08:06:18 -07:00
2008-05-21 16:56:00 -07:00
2008-06-09 12:19:41 +10:00
2008-06-12 18:05:42 -07:00
2008-06-15 11:12:20 -05:00
2008-06-30 10:16:50 +10:00
2008-05-20 13:31:55 -07:00
2008-06-30 10:16:50 +10:00
2008-04-30 08:29:52 -07:00
2008-04-30 08:29:52 -07:00