[PATCH] ASoC: stm32: spdifrx: Delete unnecessary check in the probe function

Mark Brown broonie at kernel.org
Wed Aug 11 04:58:46 PDT 2021


On Wed, Aug 11, 2021 at 07:55:23PM +0800, Tang Bin wrote:
> The function stm32_spdifrx_parse_of() is only called by the function
> stm32_spdifrx_probe(), and the probe function is only called with
> an openfirmware platform device. Therefore there is no need to check
> the device_node in probe function.

What is the benefit of not doing the check?  It seems like reasonable
defensive programming.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210811/e9a4f328/attachment.sig>


More information about the linux-arm-kernel mailing list