Re: [PATCH] ALSA: hda: simplify match functions and remove unreachable return
From: Takashi Iwai
Date: Wed Aug 12 2026 - 01:30:15 EST
On Wed, 12 Aug 2026 05:30:07 +0200,
songxiebing wrote:
>
> From: Bob Song <songxiebing@xxxxxxxxxx>
>
> hda_bus_match() has an unreachable 'return 1' after an if/else that
> covers both branches. Remove the superfluous return and simplify the
> control flow by dropping the else branch.
>
> hdac_codec_match() uses a redundant if/else to return 1 or 0.
> Simplify to a single return statement.
>
> Signed-off-by: Bob Song <songxiebing@xxxxxxxxxx>
Applied to for-next branch. Thanks.
Takashi