All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: skl-hda-dsp-generic: fix itnull.cocci warnings
@ 2019-10-25  6:29 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2019-10-25  6:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

From: kbuild test robot <lkp@intel.com>

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-hdmi")
CC: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>

---

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 for-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 = pcm->codec_dai->component;
 		snprintf(jack_name, sizeof(jack_name),
 			 "HDMI/DP, pcm=%d Jack", pcm->device);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-25  6:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25  6:29 [PATCH] ASoC: Intel: skl-hda-dsp-generic: fix itnull.cocci warnings Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.