From: Cornelia Huck Date: Fri, 22 Sep 2006 09:37:32 +0000 (+0200) Subject: driver core fixes: sysfs_create_group() retval in topology.c X-Git-Tag: v2.6.19-rc3~126^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=221c324a336770a911b16bda02b9f4adad506a35;p=linux-2.6 driver core fixes: sysfs_create_group() retval in topology.c Return the return value of sysfs_create_group() in topology_add_dev(). Signed-off-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 3ef9d514b9..28dccb730a 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c @@ -97,8 +97,7 @@ static struct attribute_group topology_attr_group = { /* Add/Remove cpu_topology interface for CPU device */ static int __cpuinit topology_add_dev(struct sys_device * sys_dev) { - sysfs_create_group(&sys_dev->kobj, &topology_attr_group); - return 0; + return sysfs_create_group(&sys_dev->kobj, &topology_attr_group); } static int __cpuinit topology_remove_dev(struct sys_device * sys_dev)