Message ID | alpine.DEB.2.21.1905301904530.2500@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ASoC: soc-core: fix ifnullfree.cocci warnings | expand |
On Thu, May 30, 2019 at 07:06:11PM -0400, Julia Lawall wrote: > From: kbuild test robot <lkp@intel.com> > > sound/soc/soc-core.c:391:2-7: WARNING: NULL check before some freeing functions is not needed. > > NULL check before some freeing functions is not needed. This doesn't apply against current code, please check and resend.
--- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -387,8 +387,7 @@ static void soc_free_pcm_runtime(struct snd_soc_rtdcom_del_all(rtd); - if (rtd->codec_dais) - kfree(rtd->codec_dais); + kfree(rtd->codec_dais); list_del(&rtd->list); kfree(rtd);