* [patch] ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of()
@ 2015-07-21 8:57 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2015-07-21 8:57 UTC (permalink / raw)
To: Liam Girdwood
Cc: Stephen Rothwell, alsa-devel, kernel-janitors, linux-kernel,
Arnaud Pouliquen, Takashi Iwai, Mark Brown, kbuild test robot
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>
diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c
index 51f745c..dffabf3 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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-21 8:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 8:57 [patch] ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of() Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).