Skip to content

Commit

Permalink
[POWERPC] Remove warning in arch/powerpc/kernel/sysfs.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Sep 13, 2007
1 parent a416561 commit 6bcc4c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/powerpc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6bcc4c0

Please sign in to comment.