Skip to content

Commit

Permalink
ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of()
Browse files Browse the repository at this point in the history
There is a stray '!' which means the condition is never true.

Fixes: f3bd847 ('ASoC: sti: Add uniperipheral dai driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 21, 2015
1 parent bf9185d commit a4642e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sti/sti_uniperif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a4642e9

Please sign in to comment.