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 <[email protected]>

Signed-off-by: Marek Vasut <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: joeyli <[email protected]>
---
 drivers/platform/x86/acer-wmi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 175809d..ae969fd 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,
 
        BUG_ON(!name || !ah);
 
-       handle = 0;
+       handle = NULL;
        status = acpi_get_devices(prop, acer_wmi_get_handle_cb,
                                        (void *)name, &handle);
 
-- 
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" 
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to