Skip to contentSkip to conversation

sony-laptop: use NULL for pointer

PATCH In review Randy Dunlap 2 participants 2 messages Jun 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 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");