Skip to content

Commit ee14bad

Browse files
crojewsk-inteltiwai
authored andcommitted
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
1 parent 3adb233 commit ee14bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/hda_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3313,7 +3313,7 @@ int snd_hda_codec_parse_pcms(struct hda_codec *codec)
33133313
list_for_each_entry(cpcm, &codec->pcm_list_head, list) {
33143314
int stream;
33153315

3316-
for (stream = 0; stream < 2; stream++) {
3316+
for_each_pcm_streams(stream) {
33173317
struct hda_pcm_stream *info = &cpcm->stream[stream];
33183318

33193319
if (!info->substreams)

0 commit comments

Comments
 (0)