From: Takashi Iwai <tiwai@suse.de>
To: Thorsten Blum <thorsten.blum@linux.dev>
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
"Dr. David Alan Gilbert" <linux@treblig.org>,
Julia Lawall <Julia.Lawall@inria.fr>,
Wentao Liang <vulab@iscas.ac.cn>, Takashi Iwai <tiwai@suse.de>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ALSA: hda: Use min() to simplify snd_hda_get_devices()
Date: Thu, 14 Aug 2025 08:40:21 +0200 [thread overview]
Message-ID: <87y0rmv222.wl-tiwai@suse.de> (raw)
In-Reply-To: <20250813205507.215658-2-thorsten.blum@linux.dev>
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@linux.dev>
Applied both patches now. Thanks.
Takashi
prev parent reply other threads:[~2025-08-14 6:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 20:55 Thorsten Blum
2025-08-13 21:00 ` [PATCH 2/2] ALSA: hda: Improve local variable data type in print_device_list() Thorsten Blum
2025-08-14 6:40 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y0rmv222.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Julia.Lawall@inria.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux@treblig.org \
--cc=perex@perex.cz \
--cc=thorsten.blum@linux.dev \
--cc=tiwai@suse.com \
--cc=vulab@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®