Commit 6bcc4c01 authored by Olof Johansson's avatar Olof Johansson Committed by Paul Mackerras

[POWERPC] Remove warning in arch/powerpc/kernel/sysfs.c

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: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent a416561b
...@@ -440,12 +440,14 @@ int cpu_add_sysdev_attr_group(struct attribute_group *attrs) ...@@ -440,12 +440,14 @@ int cpu_add_sysdev_attr_group(struct attribute_group *attrs)
{ {
int cpu; int cpu;
struct sys_device *sysdev; struct sys_device *sysdev;
int ret;
mutex_lock(&cpu_mutex); mutex_lock(&cpu_mutex);
for_each_possible_cpu(cpu) { for_each_possible_cpu(cpu) {
sysdev = get_cpu_sysdev(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); mutex_unlock(&cpu_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment