ASoC: sh: FSI:: don't check platform_get_irq's return value against zero

platform_get_irq returns -ENXIO on failure, so !irq was probably
always true. Better use (int)irq <= 0. Note that a return value of
zero is still handled as error even though this could mean irq0.

This is a followup to 305b3228f9ff4d59f49e6d34a7034d44ee8ce2f0 that
changed the return value of platform_get_irq from 0 to -ENXIO on error.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Uwe Kleine-König and committed by
Mark Brown
b6aa1793 48c03ce7

+1 -1
+1 -1
sound/soc/sh/fsi.c
··· 876 876 877 877 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 878 878 irq = platform_get_irq(pdev, 0); 879 - if (!res || !irq) { 879 + if (!res || (int)irq <= 0) { 880 880 dev_err(&pdev->dev, "Not enough FSI platform resources.\n"); 881 881 ret = -ENODEV; 882 882 goto exit;