]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: imx8: Fix an is IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Aug 2019 13:18:55 +0000 (16:18 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 18:22:17 +0000 (19:22 +0100)
commitaf8160088ef67a9bbde3fbbb6ecdc2a9b2f52a62
tree19edcdd9e2718f0637acf2c9cbd06af39b835414
parentaf674e259399292911d6d395cf30e6f6c385c6aa
ASoC: SOF: imx8: Fix an is IS_ERR() vs NULL check

The device_link_add() function only returns NULL on error, it doesn't
return error pointers.

Fixes: f8612cb94e5f ("ASoC: SOF: imx: Add i.MX8 HW support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20190826131855.GA6840@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c