[PATCH] x86_64: Sparse warnings fix.

Fixes the following sparse warnings:

arch/x86_64/kernel/mce_amd.c:321:29: warning: Using plain integer as NULL pointer
arch/x86_64/kernel/mce_amd.c:410:41: warning: Using plain integer as NULL pointer

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Luiz Fernando Capitulino and committed by
Linus Torvalds
68209407 915f34e2

+2 -2
+2 -2
arch/x86_64/kernel/mce_amd.c
··· 320 320 static __cpuinit int threshold_create_bank(unsigned int cpu, int bank) 321 321 { 322 322 int err = 0; 323 - struct threshold_bank *b = 0; 323 + struct threshold_bank *b = NULL; 324 324 325 325 #ifdef CONFIG_SMP 326 326 if (cpu_core_id[cpu] && shared_bank[bank]) { /* symlink */ ··· 409 409 if (shared_bank[bank] && atomic_read(&b->kobj.kref.refcount) > 2) { 410 410 sprintf(name, "bank%i", bank); 411 411 sysfs_remove_link(&per_cpu(device_threshold, cpu).kobj, name); 412 - per_cpu(threshold_banks, cpu)[bank] = 0; 412 + per_cpu(threshold_banks, cpu)[bank] = NULL; 413 413 } else { 414 414 kobject_unregister(&b->kobj); 415 415 kfree(per_cpu(threshold_banks, cpu)[bank]);