ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Jul 2015 08:57:36 +0000 (11:57 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 21 Jul 2015 10:44:14 +0000 (11:44 +0100)
There is a stray '!' which means the condition is never true.

Fixes: f3bd847eb0a7 ('ASoC: sti: Add uniperipheral dai driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sti/sti_uniperif.c

index 51f745c56c7fda4804c7f1b49798e586557e0060..dffabf3ba9fbc30be71c7dcfc7488df056ab23db 100644 (file)
@@ -175,7 +175,7 @@ static int sti_uniperiph_cpu_dai_of(struct device_node *node,
                                     UNIPERIF_FIFO_DATA_OFFSET(uni);
 
        uni->irq = platform_get_irq(priv->pdev, 0);
-       if (!uni->irq < 0) {
+       if (uni->irq < 0) {
                dev_err(dev, "Failed to get IRQ resource");
                return -ENXIO;
        }