diff options
author | Marek Vasut <marex@denx.de> | 2012-07-04 19:30:09 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-07-28 00:28:54 -0400 |
commit | 24237c43aade30758aacabbf0e462fca19c48231 (patch) | |
tree | dbaf1d922cdd25b78fbc540362a793617618c198 /drivers/platform | |
parent | 3766054fff4af1b58a1440a284907887f4d2e8be (diff) |
ACER: Fix up sparse warning
drivers/platform/x86/acer-wmi.c:1836:18: sparse: Using plain integer as NULL pointer
drivers/platform/x86/acer-wmi.c:1836:
1833
1834 BUG_ON(!name || !ah);
1835
> 1836 handle = 0;
1837 status = acpi_get_devices(prop, acer_wmi_get_handle_cb,
1838 (void *)name, &handle);
1839
Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Fengguang Wu <wfg@linux.intel.com>
Cc: joeyli <jlee@suse.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/acer-wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 377d92d8d9b1..cdee5ecf4bf6 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
@@ -1833,7 +1833,7 @@ static int __init acer_wmi_get_handle(const char *name, const char *prop, | |||
1833 | 1833 | ||
1834 | BUG_ON(!name || !ah); | 1834 | BUG_ON(!name || !ah); |
1835 | 1835 | ||
1836 | handle = 0; | 1836 | handle = NULL; |
1837 | status = acpi_get_devices(prop, acer_wmi_get_handle_cb, | 1837 | status = acpi_get_devices(prop, acer_wmi_get_handle_cb, |
1838 | (void *)name, &handle); | 1838 | (void *)name, &handle); |
1839 | 1839 | ||