[PATCH] ALSA: hda/realtek: Fix code style error

songxiebing posted 1 patch 2 months, 1 week ago
sound/hda/codecs/realtek/realtek.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] ALSA: hda/realtek: Fix code style error
Posted by songxiebing 2 months, 1 week ago
Output of checkpatch shows error:
ERROR: else should follow close brace '}'
2168: FILE: sound/hda/codecs/realtek/realtek.c:2168:
+	}
+	else

So fix it.

Signed-off-by: songxiebing <songxiebing@kylinos.cn>
---
 sound/hda/codecs/realtek/realtek.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/hda/codecs/realtek/realtek.c b/sound/hda/codecs/realtek/realtek.c
index aad265c0a5b6..b240f13b0438 100644
--- a/sound/hda/codecs/realtek/realtek.c
+++ b/sound/hda/codecs/realtek/realtek.c
@@ -2164,8 +2164,7 @@ void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec,
 	if (action == HDA_FIXUP_ACT_PRE_PROBE) {
 		struct alc_spec *spec = codec->spec;
 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
-	}
-	else
+	} else
 		alc_fixup_headset_mode(codec, fix, action);
 }
 EXPORT_SYMBOL_NS_GPL(alc_fixup_headset_mode_no_hp_mic, "SND_HDA_CODEC_REALTEK");
-- 
2.25.1
Re: [PATCH] ALSA: hda/realtek: Fix code style error
Posted by Takashi Iwai 2 months, 1 week ago
On Sun, 05 Apr 2026 03:42:08 +0200,
songxiebing wrote:
> 
> Output of checkpatch shows error:
> ERROR: else should follow close brace '}'
> 2168: FILE: sound/hda/codecs/realtek/realtek.c:2168:
> +	}
> +	else
> 
> So fix it.
> 
> Signed-off-by: songxiebing <songxiebing@kylinos.cn>

Applied to for-next branch now.  Thanks.


Takashi