]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dapm.c: add comment for kzalloc()/kfree() on snd_soc_dai_link_event_pre_pmu()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 8 Sep 2022 02:45:12 +0000 (02:45 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 8 Sep 2022 10:39:39 +0000 (11:39 +0100)
commit0860326ae43d09907842bfb2ffffd26e76cf3194
tree1c7f6419d9f99dd54759fe0e8e37e43c53fe054e
parente693b741ca86a2d2cb2fe0b898375c09f742e5dd
ASoC: soc-dapm.c: add comment for kzalloc()/kfree() on snd_soc_dai_link_event_pre_pmu()

snd_soc_dai_link_event_pre_pmu() is using kzalloc()/kfree() for params.
It looks we don't need to use these, but are necessary.
But, it is difficult to know why it is necessary without any comments.
This patch adds the reasons via comment.

Link: https://lore.kernel.org/all/Yxc2wzbZsSVZNf8Y@sirena.org.uk/
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878rmubn47.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c