classmate-laptop: Fix sparse warning (0 as NULL)
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 14:57:44 +0000 (14:57 +0000)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 7 Feb 2015 20:12:00 +0000 (12:12 -0800)
Fix the following sparse warning:

classmate-laptop.c:523:61: warning: Using plain integer as NULL pointer

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/classmate-laptop.c

index 70d355a9ae2cc2f7cdc2efb04941a2c76688139f..55cf10bc78174b2b50094ec3aebf59ded10847b1 100644 (file)
@@ -520,7 +520,7 @@ static acpi_status cmpc_get_accel(acpi_handle handle,
 {
        union acpi_object param[2];
        struct acpi_object_list input;
-       struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, 0 };
+       struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
        unsigned char *locs;
        acpi_status status;