Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map.

Signed-off-by: Hou Zhiqiang <b48286@freescale.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Hou Zhiqiang and committed by
Mark Brown
7227cd18 6ce4eac1

+1 -1
+1 -1
drivers/spi/spi-fsl-espi.c
··· 705 705 goto err; 706 706 707 707 irq = irq_of_parse_and_map(np, 0); 708 - if (!ret) { 708 + if (!irq) { 709 709 ret = -EINVAL; 710 710 goto err; 711 711 }