Sfoglia il codice sorgente

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>
Hou Zhiqiang 11 anni fa
parent
commit
7227cd1893
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/spi/spi-fsl-espi.c

+ 1 - 1
drivers/spi/spi-fsl-espi.c

@@ -705,7 +705,7 @@ static int of_fsl_espi_probe(struct platform_device *ofdev)
 		goto err;
 		goto err;
 
 
 	irq = irq_of_parse_and_map(np, 0);
 	irq = irq_of_parse_and_map(np, 0);
-	if (!ret) {
+	if (!irq) {
 		ret = -EINVAL;
 		ret = -EINVAL;
 		goto err;
 		goto err;
 	}
 	}