Skip to content

Commit

Permalink
driver core fixes: sysfs_create_group() retval in topology.c
Browse files Browse the repository at this point in the history
Return the return value of sysfs_create_group() in topology_add_dev().

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Cornelia Huck authored and Greg Kroah-Hartman committed Oct 18, 2006
1 parent 141ecc5 commit 221c324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/base/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 221c324

Please sign in to comment.