mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [9/9] driver core fixes: sysfs_create_group() retval in topology.c
@ 2006-09-22  9:37 Cornelia Huck
  0 siblings, 0 replies; only message in thread
From: Cornelia Huck @ 2006-09-22  9:37 UTC (permalink / raw)
  To: Greg K-H; +Cc: linux-kernel

From: Cornelia Huck <cornelia.huck@de.ibm.com>

Return the return value of sysfs_create_group() in topology_add_dev().

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>

---
 drivers/base/topology.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- linux-2.6-CH.orig/drivers/base/topology.c
+++ linux-2.6-CH/drivers/base/topology.c
@@ -97,8 +97,7 @@ static struct attribute_group topology_a
 /* 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-22  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-22  9:37 [9/9] driver core fixes: sysfs_create_group() retval in topology.c Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®