Commit 7e1b23b0 authored by Fabian Frederick's avatar Fabian Frederick Committed by Takashi Iwai

ALSA: rawmidi: don't opencode IS_REACHABLE()

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent db0717da
...@@ -1610,7 +1610,7 @@ static int snd_rawmidi_dev_free(struct snd_device *device) ...@@ -1610,7 +1610,7 @@ static int snd_rawmidi_dev_free(struct snd_device *device)
return snd_rawmidi_free(rmidi); return snd_rawmidi_free(rmidi);
} }
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) #if IS_REACHABLE(CONFIG_SND_SEQUENCER)
static void snd_rawmidi_dev_seq_free(struct snd_seq_device *device) static void snd_rawmidi_dev_seq_free(struct snd_seq_device *device)
{ {
struct snd_rawmidi *rmidi = device->private_data; struct snd_rawmidi *rmidi = device->private_data;
...@@ -1691,7 +1691,7 @@ static int snd_rawmidi_dev_register(struct snd_device *device) ...@@ -1691,7 +1691,7 @@ static int snd_rawmidi_dev_register(struct snd_device *device)
} }
} }
rmidi->proc_entry = entry; rmidi->proc_entry = entry;
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) #if IS_REACHABLE(CONFIG_SND_SEQUENCER)
if (!rmidi->ops || !rmidi->ops->dev_register) { /* own registration mechanism */ if (!rmidi->ops || !rmidi->ops->dev_register) { /* own registration mechanism */
if (snd_seq_device_new(rmidi->card, rmidi->device, SNDRV_SEQ_DEV_ID_MIDISYNTH, 0, &rmidi->seq_dev) >= 0) { if (snd_seq_device_new(rmidi->card, rmidi->device, SNDRV_SEQ_DEV_ID_MIDISYNTH, 0, &rmidi->seq_dev) >= 0) {
rmidi->seq_dev->private_data = rmidi; rmidi->seq_dev->private_data = rmidi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment