From: Takashi Iwai Date: Tue, 7 Jan 2025 15:56:32 +0000 (+0100) Subject: ALSA: sonicvibes: Simplify with str_off_on() X-Git-Tag: v6.14-rc1~111^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=feeeebaabf93af3ccc3a2cc4488058d239779f34;p=thirdparty%2Fkernel%2Flinux.git ALSA: sonicvibes: Simplify with str_off_on() Use the standard helper str_off_on() to simplify the code. Only code refactoring, no behavior change. Link: https://patch.msgid.link/20250107155641.4435-3-tiwai@suse.de Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index e510715a6c957..c30eaf1038e76 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c @@ -1118,7 +1118,7 @@ static void snd_sonicvibes_proc_read(struct snd_info_entry *entry, tmp = sonic->srs_space & 0x0f; snd_iprintf(buffer, "SRS 3D : %s\n", - sonic->srs_space & 0x80 ? "off" : "on"); + str_off_on(sonic->srs_space & 0x80)); snd_iprintf(buffer, "SRS Space : %s\n", tmp == 0x00 ? "100%" : tmp == 0x01 ? "75%" :