Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: soc-compress: Change the check for codec_dai
It should be better to reverse the check on codec_dai and returned early in order to be easier to understand. Fixes: de2c6f9 ("ASoC: soc-compress: prevent the potentially use of null pointer") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
- Loading branch information