Skip to content

Commit 9b64560

Browse files
guohanjunrafaeljw
authored andcommitted
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>
1 parent be7ae56 commit 9b64560

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/acpi/bus.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,8 @@ static int __init acpi_init(void)
13251325
}
13261326

13271327
acpi_kobj = kobject_create_and_add("acpi", firmware_kobj);
1328-
if (!acpi_kobj) {
1328+
if (!acpi_kobj)
13291329
pr_debug("%s: kset create error\n", __func__);
1330-
acpi_kobj = NULL;
1331-
}
13321330

13331331
result = acpi_bus_init();
13341332
if (result) {

0 commit comments

Comments
 (0)