]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda: Improve local variable data type in print_device_list()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 13 Aug 2025 21:00:57 +0000 (23:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Aug 2025 06:40:01 +0000 (08:40 +0200)
commit4a31a043fc16d72b662251b75b183e25e2fa9e47
tree762708a5b3aa7f2d040eed0ad4c455eef8db1380
parentc308bb4190a8f6f09270b541457d6ae905d2f7bc
ALSA: hda: Improve local variable data type in print_device_list()

Use 'unsigned int' instead of 'int' for the local variable 'devlist_len'
because snd_hda_get_devices() returns an 'unsigned int' and the length
cannot be negative. Update the print format specifier and the if
condition accordingly.

Reformat calling snd_hda_codec_read() to fit in a single line while
we're at it.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250813210059.215912-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/common/proc.c