Skip to content
Unverified Commit a325c7bc authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

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: 202acc56 ("ASoC: SOF: imx: Add i.MX8 HW support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20190826131855.GA6840@mwanda


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9ec05d47
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment