diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-25 23:58:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 01:25:00 +0200 |
commit | 4ae6673e029d609da7ef4311440d6de501d6967a (patch) | |
tree | 59453584086a82ff8dc7fd6ee04351a770c75b98 /arch/i386/kernel/io_apic.c | |
parent | [PATCH] remove redundant NULL check before before kfree() in kernel/sysctl.c (diff) | |
download | linux-4ae6673e029d609da7ef4311440d6de501d6967a.tar.xz linux-4ae6673e029d609da7ef4311440d6de501d6967a.zip |
[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>
Diffstat (limited to 'arch/i386/kernel/io_apic.c')
-rw-r--r-- | arch/i386/kernel/io_apic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index fc81c8cddd22..060c4ca4d69f 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c @@ -632,10 +632,8 @@ static int __init balanced_irq_init(void) printk(KERN_ERR "balanced_irq_init: failed to spawn balanced_irq"); failed: for (i = 0; i < NR_CPUS; i++) { - if(irq_cpu_data[i].irq_delta) - kfree(irq_cpu_data[i].irq_delta); - if(irq_cpu_data[i].last_irq) - kfree(irq_cpu_data[i].last_irq); + kfree(irq_cpu_data[i].irq_delta); + kfree(irq_cpu_data[i].last_irq); } return 0; } |