OSDN Git Service

ASoC: tegra: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Jun 2021 13:44:24 +0000 (16:44 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:06:27 +0000 (13:06 +0100)
commit3aed3ddf9639a4f915984177ff8a2253f3f8acfe
tree9ff09958eb612cc79db60206f84840a1c89b9385
parent77b7bae7802848feabe37a92533bee64387906e7
ASoC: tegra: Fix a NULL vs IS_ERR() check

The tegra_machine_parse_phandle() function doesn't return NULL, it returns
error pointers.

Fixes: cc8f70f56039 ("ASoC: tegra: Unify ASoC machine drivers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/YMyjOKFsPe9SietU@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_asoc_machine.c