]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] cell: catch errors from sysfs_create_group()
authorJeremy Kerr <jk@ozlabs.org>
Wed, 5 Dec 2007 02:49:31 +0000 (13:49 +1100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Dec 2007 00:00:06 +0000 (01:00 +0100)
commitd99ad4ae2f004b64de6164a2d424da03850cfbeb
tree5e5ed23235a313164bf45b249d55bb2c496bbce7
parent467cbcd41d5c0c8df80fe7b8b11c737260c2a7e3
[POWERPC] cell: catch errors from sysfs_create_group()

We're currently getting a warning from not checking the result of
sysfs_create_group, which is declared as __must_check.

This change introduces appropriate error-handling for
spu_add_sysdev_attr_group()

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/platforms/cell/spu_base.c