]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: sb: Use IS_REACHABLE()
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2017 09:54:26 +0000 (11:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 May 2017 05:13:06 +0000 (07:13 +0200)
Replace the complex ifdef conditions with IS_REACHABLE() macro.
No functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/emu8000.c
sound/isa/sb/sb16.c

index ec180708f160cabcf9fa55f1a8fe88ecfaf36fcc..0b5c4cf3abfa9332c758fb00a02167b87ff739d6 100644 (file)
@@ -1138,7 +1138,7 @@ snd_emu8000_new(struct snd_card *card, int index, long port, int seq_ports,
                snd_emu8000_free(hw);
                return err;
        }
-#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE))
+#if IS_REACHABLE(CONFIG_SND_SEQUENCER)
        if (snd_seq_device_new(card, index, SNDRV_SEQ_DEV_ID_EMU8000,
                               sizeof(struct snd_emu8000*), &awe) >= 0) {
                strcpy(awe->name, "EMU-8000");
index 3b2e4f405ff27bdb60f622907bcdf594e7a59e2f..31ab09b3b04926e846f5c2de0385918c9b396145 100644 (file)
@@ -62,7 +62,7 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labs,SB AWE 32},"
 #define SNDRV_DEBUG_IRQ
 #endif
 
-#if defined(SNDRV_SBAWE) && (defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)))
+#if defined(SNDRV_SBAWE) && IS_REACHABLE(CONFIG_SND_SEQUENCER)
 #define SNDRV_SBAWE_EMU8000
 #endif