linux-stable/sound/soc/mediatek
Ajye Huang 05d450b06d
ASoC: mediatek: mt8186-rt5682: primary_codec_init() warn: missing error code? 'ret'
The function primary_codec_init() should return 0 if dmic_sel is null.

Here is the warning message reported by 0-DAY CI Kernel Test Service.

smatch warnings:
primary_codec_init() warn: missing error code? 'ret'
...
2022-11-02  141       if (!priv->dmic_sel) {
2022-11-02  142               dev_info(card->dev, "dmic_sel is null\n");
2022-11-02 @143               return ret;

return -EIVNAL;?  return 0;?

2022-11-02  144       }

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ajye Huang <ajye_huang@compal.corp-partner.google.com>
Link: https://lore.kernel.org/r/20230107175933.12973-1-ajye_huang@compal.corp-partner.google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-09 13:05:32 +00:00
..
common ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd 2022-11-25 19:31:14 +00:00
mt2701 ASoC: mediatek: mt2701-wm8960: Register to module device table 2022-11-09 13:44:24 +00:00
mt6797 ASoC: mediatek: mt6797-mt6351: Register to module device table 2022-11-09 13:44:25 +00:00
mt8173 ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe() 2022-12-07 14:19:11 +00:00
mt8183 ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() 2022-12-07 14:19:15 +00:00
mt8186 ASoC: mediatek: mt8186-rt5682: primary_codec_init() warn: missing error code? 'ret' 2023-01-09 13:05:32 +00:00
mt8192 ASoC: mediatek: mt8192-mt6359: Register to module device table 2022-11-09 13:44:30 +00:00
mt8195 ASoC: mediatek: mt8195: add sof be ops to check audio active 2022-12-12 15:44:23 +00:00
Kconfig ASoC: mediatek: mt8186: fix Kconfig dependency 2022-07-25 13:16:41 +01:00
Makefile ASoC: mediatek: mt8186: add platform driver 2022-07-20 17:42:24 +01:00