[POWERPC] Remove warning in arch/powerpc/kernel/sysfs.c
authorOlof Johansson <olof@lixom.net>
Wed, 5 Sep 2007 02:43:17 +0000 (12:43 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Sep 2007 15:33:22 +0000 (01:33 +1000)
Fixes:

arch/powerpc/kernel/sysfs.c: In function 'cpu_add_sysdev_attr_group':
arch/powerpc/kernel/sysfs.c:388: warning: ignoring return value of
'sysfs_create_group', declared with attribute warn_unused_result

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/sysfs.c

index d7835ba9fb8c0c38638fd97afc713d90e43b19ea..25d9a96484ddeb914ff0d7fe63aa1b0c3baf7e8e 100644 (file)
@@ -440,12 +440,14 @@ int cpu_add_sysdev_attr_group(struct attribute_group *attrs)
 {
        int cpu;
        struct sys_device *sysdev;
+       int ret;
 
        mutex_lock(&cpu_mutex);
 
        for_each_possible_cpu(cpu) {
                sysdev = get_cpu_sysdev(cpu);
-               sysfs_create_group(&sysdev->kobj, attrs);
+               ret = sysfs_create_group(&sysdev->kobj, attrs);
+               WARN_ON(ret != 0);
        }
 
        mutex_unlock(&cpu_mutex);