Re: [PATCH] ALSA: hda: Improve local variable data type in snd_hda_get_num_devices()

From: Takashi Iwai
Date: Wed Aug 13 2025 - 11:51:04 EST


On Wed, 13 Aug 2025 12:34:16 +0200,
Thorsten Blum wrote:
>
> Use 'int' instead of 'unsigned int' because the local variable 'parm'
> can be negative.
>
> While an unsigned integer is harmless in practice due to the implicit
> type conversion, it's safer and more idiomatic to use a signed integer
> to properly check for -1.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Applied now. Thanks.


Takashi