]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/stm32-exti: Remove check on always false condition
authorAntonio Borneo <antonio.borneo@foss.st.com>
Wed, 17 Aug 2022 12:57:58 +0000 (14:57 +0200)
committerMarc Zyngier <maz@kernel.org>
Mon, 12 Sep 2022 15:31:25 +0000 (16:31 +0100)
commit203b57a28c16a6fab141ffea543aab86603246f3
tree823f3c82c4dbe26a02061f5a81c97b583b25a24c
parent63433aa6d0e739cf2afad75742003c018cf3cb74
irqchip/stm32-exti: Remove check on always false condition

The field drv_data is assigned during driver's probe, where it's
already checked to be not NULL.

Remove the always false check '!host_data->drv_data'.

This fixes a warning "variable dereferenced before check" detected
by '0-DAY CI Kernel Test Service'.

Fixes: aa97fec02a41 ("irqchip/stm32-exti: Simplify irq description table")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/lkml/202208131739.gJvcs9ls-lkp@intel.com/
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220817125758.5975-1-antonio.borneo@foss.st.com
drivers/irqchip/irq-stm32-exti.c