mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
64ca77d9f5
snd_soc_dai_set_drvdata is not needed when the set data comes from snd_soc_dai_get_drvdata or dev_get_drvdata. The problem was fixed usingthe following semantic patch: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,y,e; @@ x = dev_get_drvdata(y->dev) ... when != x = e - snd_soc_dai_set_drvdata(y,x); @@ expression x,y,e; @@ x = snd_soc_dai_get_drvdata(y) ... when != x = e - snd_soc_dai_set_drvdata(y,x); // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Link: https://lore.kernel.org/r/20210213101907.1318496-2-Julia.Lawall@inria.fr Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
brownstone.c | ||
corgi.c | ||
e740_wm9705.c | ||
e750_wm9705.c | ||
e800_wm9712.c | ||
em-x270.c | ||
hx4700.c | ||
imote2.c | ||
Kconfig | ||
magician.c | ||
Makefile | ||
mioa701_wm9713.c | ||
mmp-pcm.c | ||
mmp-sspa.c | ||
mmp-sspa.h | ||
palm27x.c | ||
poodle.c | ||
pxa2xx-ac97.c | ||
pxa2xx-i2s.c | ||
pxa2xx-i2s.h | ||
pxa2xx-pcm.c | ||
pxa-ssp.c | ||
pxa-ssp.h | ||
spitz.c | ||
tosa.c | ||
ttc-dkb.c | ||
z2.c | ||
zylonite.c |