All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acpi: cm_sbs: use NULL instead of 0 for ptr
@ 2006-09-26  4:47 Randy Dunlap
  2006-09-26  7:20 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2006-09-26  4:47 UTC (permalink / raw)
  To: len.brown, akpm; +Cc: linux-acpi, viro

From: Randy Dunlap <rdunlap@xenotime.net>

Use NULL instead of 0 for pointer value, eliminate sparse warnings.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 drivers/acpi/cm_sbs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2618-g4.orig/drivers/acpi/cm_sbs.c
+++ linux-2618-g4/drivers/acpi/cm_sbs.c
@@ -67,7 +67,7 @@ void acpi_unlock_ac_dir(struct proc_dir_
 		lock_ac_dir_cnt--;
 	if (lock_ac_dir_cnt == 0 && acpi_ac_dir_param && acpi_ac_dir) {
 		remove_proc_entry(ACPI_AC_CLASS, acpi_root_dir);
-		acpi_ac_dir = 0;
+		acpi_ac_dir = NULL;
 	}
 	mutex_unlock(&cm_sbs_mutex);
 }
@@ -99,7 +99,7 @@ void acpi_unlock_battery_dir(struct proc
 	if (lock_battery_dir_cnt == 0 && acpi_battery_dir_param
 	    && acpi_battery_dir) {
 		remove_proc_entry(ACPI_BATTERY_CLASS, acpi_root_dir);
-		acpi_battery_dir = 0;
+		acpi_battery_dir = NULL;
 	}
 	mutex_unlock(&cm_sbs_mutex);
 	return;


---

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-26  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26  4:47 [PATCH] acpi: cm_sbs: use NULL instead of 0 for ptr Randy Dunlap
2006-09-26  7:20 ` Len Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.