sony-laptop: use NULL for pointer
Subsystems (2)
PATCH 1/1 sony-laptop: use NULL for pointer
From: Randy Dunlap <[email protected]>
Use NULL instead of 0 for pointer:drivers/misc/sony-laptop.c:1920:6: warning: Using plain integer as NULL pointer
Signed-off-by Randy Dunlap <[email protected]>
--- drivers/misc/sony-laptop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/misc/sony-laptop.c +2 -1
@@ -1917,7 +1917,8 @@ end:*/ static int sony_pic_disable (struct acpi_device *device) { -if (ACPI_FAILURE (acpi_evaluate_object (device->handle,"_DIS" ,0 ,NULL ))) +if (ACPI_FAILURE (acpi_evaluate_object (device->handle, +"_DIS" ,NULL ,NULL )))return -ENXIO ;dprintk ("Device disabled\n" );
Quoted 6 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Use NULL instead of 0 for pointer:
drivers/misc/sony-laptop.c:1920:6: warning: Using plain integer as NULL pointerSigned-off-by Randy Dunlap <[email protected]>
Acked-by Mattia Dongili <[email protected]>
Signature · 2 lines
mattia :wq!