summaryrefslogtreecommitdiff
path: root/sound/soc/sti
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-07-21 11:57:36 +0300
committerMark Brown <broonie@kernel.org>2015-07-21 13:44:14 +0300
commita4642e99694a912b32952317e8f4c253ed6be4a9 (patch)
tree3430995585ef26cfbc686cde408254e4cde3370f /sound/soc/sti
parentbf9185dda829b2aaf73e1e869891a968ff85e2ae (diff)
downloadlinux-a4642e99694a912b32952317e8f4c253ed6be4a9.tar.xz
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.c2
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;
}