diff options
-rw-r--r-- | drivers/acpi/dock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 78648f811049..68d720af71ed 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -825,7 +825,7 @@ static ssize_t show_docked(struct device *dev, | |||
825 | 825 | ||
826 | struct dock_station *dock_station = dev->platform_data; | 826 | struct dock_station *dock_station = dev->platform_data; |
827 | 827 | ||
828 | if (ACPI_SUCCESS(acpi_bus_get_device(dock_station->handle, &tmp))) | 828 | if (!acpi_bus_get_device(dock_station->handle, &tmp)) |
829 | return snprintf(buf, PAGE_SIZE, "1\n"); | 829 | return snprintf(buf, PAGE_SIZE, "1\n"); |
830 | return snprintf(buf, PAGE_SIZE, "0\n"); | 830 | return snprintf(buf, PAGE_SIZE, "0\n"); |
831 | } | 831 | } |