[PATCH] misc NULL noise removal
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 9 Feb 2007 16:39:20 +0000 (16:39 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 9 Feb 2007 17:14:07 +0000 (09:14 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/mm/pageattr.c
drivers/char/watchdog/machzwd.c
drivers/kvm/mmu.c

index ad91528bdc14f0cd341a6e3be8d04f29bd9b4e52..e223b1d4981c2ee845f65d5337606862c57f0213 100644 (file)
@@ -224,7 +224,7 @@ void global_flush_tlb(void)
        list_replace_init(&df_list, &l);
        spin_unlock_irq(&cpa_lock);
        if (!cpu_has_clflush)
-               flush_map(0);
+               flush_map(NULL);
        list_for_each_entry_safe(pg, next, &l, lru) {
                if (cpu_has_clflush)
                        flush_map(page_address(pg));
index 276577d08fba2f0f2791c1c1a03de69ad8feb5c2..4d730fdbd528cac4f84d78997045771a930d7b7b 100644 (file)
@@ -325,7 +325,7 @@ static int zf_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
                        return put_user(0, p);
 
                case WDIOC_KEEPALIVE:
-                       zf_ping(0);
+                       zf_ping(NULL);
                        break;
 
                default:
index 22c426cd8cb2a842274b0a005f01c42001fe430f..be793770f31b3045cef6beb7c70ec6d6864fa3f1 100644 (file)
@@ -333,7 +333,7 @@ static void rmap_desc_remove_entry(struct kvm_vcpu *vcpu,
        for (j = RMAP_EXT - 1; !desc->shadow_ptes[j] && j > i; --j)
                ;
        desc->shadow_ptes[i] = desc->shadow_ptes[j];
-       desc->shadow_ptes[j] = 0;
+       desc->shadow_ptes[j] = NULL;
        if (j != 0)
                return;
        if (!prev_desc && !desc->more)