[PATCH] get rid of redundant NULL checks before kfree() in arch/i386/

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jesper Juhl and committed by Linus Torvalds 4ae6673e 5a6b454f

+4 -9
+1 -3
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
··· 648 648 } 649 649 #endif 650 650 651 - if (powernow_table) 652 - kfree(powernow_table); 653 - 651 + kfree(powernow_table); 654 652 return 0; 655 653 } 656 654
+1 -2
arch/i386/kernel/cpu/mtrr/generic.c
··· 70 70 /* Free resources associated with a struct mtrr_state */ 71 71 void __init finalize_mtrr_state(void) 72 72 { 73 - if (mtrr_state.var_ranges) 74 - kfree(mtrr_state.var_ranges); 73 + kfree(mtrr_state.var_ranges); 75 74 mtrr_state.var_ranges = NULL; 76 75 } 77 76
+2 -4
arch/i386/kernel/io_apic.c
··· 632 632 printk(KERN_ERR "balanced_irq_init: failed to spawn balanced_irq"); 633 633 failed: 634 634 for (i = 0; i < NR_CPUS; i++) { 635 - if(irq_cpu_data[i].irq_delta) 636 - kfree(irq_cpu_data[i].irq_delta); 637 - if(irq_cpu_data[i].last_irq) 638 - kfree(irq_cpu_data[i].last_irq); 635 + kfree(irq_cpu_data[i].irq_delta); 636 + kfree(irq_cpu_data[i].last_irq); 639 637 } 640 638 return 0; 641 639 }