mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
ACPI: bus: Remove unneeded assignment
When acpi_kobj is NULL already, assigning NULL to it is redundant, so don't do that. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
be7ae56809
commit
9b64560134
1 changed files with 1 additions and 3 deletions
|
@ -1325,10 +1325,8 @@ static int __init acpi_init(void)
|
|||
}
|
||||
|
||||
acpi_kobj = kobject_create_and_add("acpi", firmware_kobj);
|
||||
if (!acpi_kobj) {
|
||||
if (!acpi_kobj)
|
||||
pr_debug("%s: kset create error\n", __func__);
|
||||
acpi_kobj = NULL;
|
||||
}
|
||||
|
||||
result = acpi_bus_init();
|
||||
if (result) {
|
||||
|
|
Loading…
Reference in a new issue