Re: [PATCH 1/2] ALSA: hda: Use min() to simplify snd_hda_get_devices()

From: Takashi Iwai
Date: Thu Aug 14 2025 - 02:40:41 EST


On Wed, 13 Aug 2025 22:55:02 +0200,
Thorsten Blum wrote:
>
> Use min() to simplify snd_hda_get_devices() and improve its readability.
>
> Change the function parameter 'max_devices' from 'int' to 'unsigned int'
> to avoid a min() signedness error. Update all related local variables
> and the function's return type to 'unsigned int' accordingly.
>
> No functional changes intended.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Applied both patches now. Thanks.


Takashi