]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: ac97: clean up whitespace and move EXPORT_SYMBOLs
authorLucas Poupeau <lucasp.linux@gmail.com>
Mon, 4 May 2026 15:38:31 +0000 (17:38 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 May 2026 15:58:30 +0000 (17:58 +0200)
Clean up an unnecessary space in a conditional statement and move
EXPORT_SYMBOL_GPL(snd_ac97_reset) and EXPORT_SYMBOL(ac97_bus_type)
to immediately follow their respective definitions.

This complies with the Linux kernel coding style convention which
prefers exports to be placed next to the exported symbol for better
code locality and readability.

Signed-off-by: Lucas Poupeau <lucasp.linux@gmail.com>
Link: https://patch.msgid.link/20260504153831.18381-1-lucasp.linux@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ac97_bus.c

index 8a44297964f500bd73d3136c19f67e2315b25cfe..ad7fb6b0c2c00e945176e03df3554e9fb33f5777 100644 (file)
@@ -73,7 +73,6 @@ int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id,
 
        if (snd_ac97_check_id(ac97, id, id_mask))
                return 0;
-
        return -ENODEV;
 }
 EXPORT_SYMBOL_GPL(snd_ac97_reset);
@@ -81,6 +80,7 @@ EXPORT_SYMBOL_GPL(snd_ac97_reset);
 const struct bus_type ac97_bus_type = {
        .name           = "ac97",
 };
+EXPORT_SYMBOL(ac97_bus_type);
 
 static int __init ac97_bus_init(void)
 {
@@ -96,7 +96,5 @@ static void __exit ac97_bus_exit(void)
 
 module_exit(ac97_bus_exit);
 
-EXPORT_SYMBOL(ac97_bus_type);
-
 MODULE_DESCRIPTION("Legacy AC97 bus interface");
 MODULE_LICENSE("GPL");