提交 60955f15 编写于 作者: S Szymon Janc 提交者: Greg Kroah-Hartman

Staging: quickstart: Cleanup quickstart_acpi_remove

Signed-off-by: NSzymon Janc <szymon@janc.net.pl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2ac16967
......@@ -309,13 +309,15 @@ static int quickstart_acpi_add(struct acpi_device *device)
static int quickstart_acpi_remove(struct acpi_device *device, int type)
{
acpi_status status = 0;
struct quickstart_acpi *quickstart = NULL;
acpi_status status;
struct quickstart_acpi *quickstart;
if (!device || !acpi_driver_data(device))
if (!device)
return -EINVAL;
quickstart = acpi_driver_data(device);
if (!quickstart)
return -EINVAL;
status = acpi_remove_notify_handler(device->handle, ACPI_ALL_NOTIFY,
quickstart_acpi_notify);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册