Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4642e99 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

ASoC: sti: error handling bug in sti_uniperiph_cpu_dai_of()



There is a stray '!' which means the condition is never true.

Fixes: f3bd847e ('ASoC: sti: Add uniperipheral dai driver')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bf9185dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}