Content-Type: multipart/mixed; boundary="===============8866755224989102555==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] ASoC: Intel: skl-hda-dsp-generic: fix itnull.cocci warnings Date: Fri, 25 Oct 2019 08:29:59 +0200 Message-ID: List-Id: --===============8866755224989102555== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot list_for_each_entry index variables can't be NULL. It necessarily is a structure that contains a list structure. Generated by: scripts/coccinelle/iterators/itnull.cocci Fixes: 38f9d75bc6ca ("ASoC: Intel: skl-hda-dsp-generic: use snd-hda-codec-h= dmi") CC: Kai Vehmanen Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Kai-Vehmanen/adapt-SOF-to-= use-snd-hda-codec-hdmi/20191025-061501 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git f= or-next :::::: branch date: 3 hours ago :::::: commit date: 3 hours ago Please take the patch only if it's a positive warning. Thanks! skl_hda_dsp_common.c | 3 --- 1 file changed, 3 deletions(-) --- a/sound/soc/intel/boards/skl_hda_dsp_common.c +++ b/sound/soc/intel/boards/skl_hda_dsp_common.c @@ -143,9 +143,6 @@ int skl_hda_hdmi_jack_init(struct snd_so return skl_hda_hdmi_build_controls(card); list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { - if (!pcm) - continue; - component =3D pcm->codec_dai->component; snprintf(jack_name, sizeof(jack_name), "HDMI/DP, pcm=3D%d Jack", pcm->device); --===============8866755224989102555==--