mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 04:21:03 -04:00
ALSA: hda: Reuse for_each_pcm_streams()
Use the macro to improve readability. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240226124432.1203798-6-cezary.rojewski@intel.com
This commit is contained in:
committed by
Takashi Iwai
parent
3adb233ec8
commit
ee14bad1d3
@@ -3313,7 +3313,7 @@ int snd_hda_codec_parse_pcms(struct hda_codec *codec)
|
||||
list_for_each_entry(cpcm, &codec->pcm_list_head, list) {
|
||||
int stream;
|
||||
|
||||
for (stream = 0; stream < 2; stream++) {
|
||||
for_each_pcm_streams(stream) {
|
||||
struct hda_pcm_stream *info = &cpcm->stream[stream];
|
||||
|
||||
if (!info->substreams)
|
||||
|
||||
Reference in New Issue
Block a user