[PATCH] edac_mc: fix error handling
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 3 Nov 2006 06:07:10 +0000 (22:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Nov 2006 20:27:57 +0000 (12:27 -0800)
commit77d6e1397a004c9376fed855e4164ca2b1dba2ed
tree163c9f556d989843d84d7f347772c090af40cb7b
parent7011774db8afca43be466f0f0428434a9edf053e
[PATCH] edac_mc: fix error handling

Call sysdev_class_unregister() on failure in edac_sysfs_memctrl_setup()
and decrease identation level for clear logic.

Acked-by: Doug Thompson <norsk5@xmission.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/edac/edac_mc.c