]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_spdif: Fix unnecessary check in fsl_spdif_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 26 Aug 2020 15:09:18 +0000 (23:09 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 1 Oct 2020 21:26:47 +0000 (22:26 +0100)
commit88956e871d47ae30a80784240d8946b26cec3165
treeafde0cb247cbc0f656c1894c9cd9d4044d968390
parent1b3b6d72f7983aaf95cc5fc09aa42be5b76fa843
ASoC: fsl_spdif: Fix unnecessary check in fsl_spdif_probe()

The function fsl_spdif_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200826150918.16116-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c