OSDN Git Service

genirq: Remove redundant NULL pointer check in __free_irq()
authorRAGHU Halharvi <raghuhack78@gmail.com>
Tue, 17 Jul 2018 10:20:09 +0000 (15:50 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 17 Jul 2018 11:35:44 +0000 (13:35 +0200)
commitd91cfeb0aa79445fcfa9f523a5b57c5e9f4113ec
tree79a47e8f19747373471a978a1d8dbad330bea707
parent519cc8652b3a1d3d0a02257afbe9573ad644da26
genirq: Remove redundant NULL pointer check in __free_irq()

The NULL pointer check in __free_irq() triggers a 'dereference before NULL
pointer check' warning in static code analysis. It turns out that the check
is redundant because all callers have a NULL pointer check already.

Remove it.

Signed-off-by: RAGHU Halharvi <raghuhack78@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20180717102009.7708-1-raghuhack78@gmail.com
kernel/irq/manage.c