Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b25cf30a authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Remove superfluous pcm NULL check



The variable pcm can be never NULL since it was rewritten with
list_for_each_entry().

Suggested-by: default avatarMarkus Osterhoff <linux-kernel@k-raum.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a92d5ee8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3102,8 +3102,7 @@ static int add_std_chmaps(struct hda_codec *codec)
			struct snd_pcm_chmap *chmap;
			const struct snd_pcm_chmap_elem *elem;

			if (!pcm || !pcm->pcm || pcm->own_chmap ||
			    !hinfo->substreams)
			if (!pcm->pcm || pcm->own_chmap || !hinfo->substreams)
				continue;
			elem = hinfo->chmap ? hinfo->chmap : snd_pcm_std_chmaps;
			err = snd_pcm_add_chmap_ctls(pcm->pcm, str, elem,