diff options
| author | Bartlomiej Zolnierkiewicz <[email protected]> | 2009-07-30 23:21:18 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-08-02 21:37:00 +0200 |
| commit | 25f6e89bedd29cc49bfa0d55497e91a671b9ae6e (patch) | |
| tree | b8fe69d00029a7bbd963b331950f4270f3a03cad | |
| parent | e25371d60cb06a44d7a32d7966ab9bfbeacb9390 (diff) | |
x86: Remove superfluous NULL pointer check in destroy_irq()
This takes care of the following entry from Dan's list:
arch/x86/kernel/apic/io_apic.c +3241 destroy_irq(11) warning: variable derefenced before check 'desc'
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Eugene Teo <[email protected]>
Cc: Julia Lawall <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
| -rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index cf51b0b58c56..7e92a9212fd7 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -3185,8 +3185,7 @@ void destroy_irq(unsigned int irq) cfg = desc->chip_data; dynamic_irq_cleanup(irq); /* connect back irq_cfg */ - if (desc) - desc->chip_data = cfg; + desc->chip_data = cfg; free_irte(irq); spin_lock_irqsave(&vector_lock, flags); |