mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02: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:
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user