Skip to content

Commit

Permalink
ACPI / hotplug: Don't set kobject parent pointer explicitly
Browse files Browse the repository at this point in the history
kobject_add() sets the parent pointer, so we don't need to do it
explicitly.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bjorn Helgaas authored and Rafael J. Wysocki committed Sep 30, 2013
1 parent 9b5b067 commit cae7127
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/acpi/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug,

kobject_init(&hotplug->kobj, &acpi_hotplug_profile_ktype);

hotplug->kobj.parent = hotplug_kobj;
error = kobject_add(&hotplug->kobj, hotplug_kobj, "%s", name);
if (error)
goto err_out;
Expand Down

0 comments on commit cae7127

Please sign in to comment.