Re: [PATCH] ALSA: hda: simplify match functions and remove unreachable return

Takashi Iwai <[email protected]>
Newsgroups gmane.linux.sound,gmane.linux.kernel
Message-ID <[email protected]>
On Wed, 12 Aug 2026 05:30:07 +0200,
songxiebing wrote:
> 
> From: Bob Song <[email protected]>
> 
> 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 <[email protected]>

Applied to for-next branch.  Thanks.


Takashi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.