]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] acpi NULL noise removal
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 10 Oct 2006 21:47:17 +0000 (22:47 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Oct 2006 22:37:22 +0000 (15:37 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/cm_sbs.c

index a01ce6700bfeb6809e24b5b4936963d4e8b06c59..4a9b7bf6f44ed79a3fff799c3a5245ed49f273a6 100644 (file)
@@ -67,7 +67,7 @@ void acpi_unlock_ac_dir(struct proc_dir_entry *acpi_ac_dir_param)
                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_dir_entry *acpi_battery_dir_param)
        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;