提交 25f6e89b 编写于 作者: B Bartlomiej Zolnierkiewicz 提交者: Ingo Molnar

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: NDan Carpenter <error27@gmail.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Eugene Teo <eteo@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
LKML-Reference: <200907302321.19086.bzolnier@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 e25371d6
...@@ -3185,7 +3185,6 @@ void destroy_irq(unsigned int irq) ...@@ -3185,7 +3185,6 @@ void destroy_irq(unsigned int irq)
cfg = desc->chip_data; cfg = desc->chip_data;
dynamic_irq_cleanup(irq); dynamic_irq_cleanup(irq);
/* connect back irq_cfg */ /* connect back irq_cfg */
if (desc)
desc->chip_data = cfg; desc->chip_data = cfg;
free_irte(irq); free_irte(irq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册