diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-07-21 11:57:36 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-21 11:44:14 +0100 |
commit | a4642e99694a912b32952317e8f4c253ed6be4a9 (patch) | |
tree | 3430995585ef26cfbc686cde408254e4cde3370f /sound/soc/sti | |
parent | bf9185dda829b2aaf73e1e869891a968ff85e2ae (diff) | |
download | linux-a4642e99694a912b32952317e8f4c253ed6be4a9.tar.bz2 |
ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of()
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>
Diffstat (limited to 'sound/soc/sti')
-rw-r--r-- | sound/soc/sti/sti_uniperif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c index 51f745c56c7f..dffabf3ba9fb 100644 --- a/sound/soc/sti/sti_uniperif.c +++ b/sound/soc/sti/sti_uniperif.c @@ -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; } |