diff mbox series

[1/2] ALSA: hda/realtek: Simplify with str_yes_no()

Message ID 20250109162318.9172-2-tiwai@suse.de (mailing list archive)
State New
Headers show
Series ALSA: trivial cleanups with str_yes_no() | expand

Commit Message

Takashi Iwai Jan. 9, 2025, 4:23 p.m. UTC
Use the standard helper for simplifying the code.
Merely cleanup, no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/hda/patch_realtek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 1aba06062433..f578b9893a8f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5900,7 +5900,7 @@  static void alc_determine_headset_type(struct hda_codec *codec)
 	}
 
 	codec_dbg(codec, "Headset jack detected iPhone-style headset: %s\n",
-		    is_ctia ? "yes" : "no");
+		  str_yes_no(is_ctia));
 	spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP;
 }