提交 9b645601 编写于 作者: H Hanjun Guo 提交者: Rafael J. Wysocki

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: NHanjun Guo <guohanjun@huawei.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 be7ae568
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册