Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1520202 > unrolled thread
| Started by | Fabian Frederick <fabf@skynet.be> |
|---|---|
| First post | 2016-11-12 09:30 +0100 |
| Last post | 2016-11-12 10:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE() Fabian Frederick <fabf@skynet.be> - 2016-11-12 09:30 +0100
Re: [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE() Takashi Iwai <tiwai@suse.de> - 2016-11-12 10:20 +0100
| From | Fabian Frederick <fabf@skynet.be> |
|---|---|
| Date | 2016-11-12 09:30 +0100 |
| Subject | [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE() |
| Message-ID | <sCBRg-7Zx-7@gated-at.bofh.it> |
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
sound/drivers/opl3/opl3_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c
index 369cef2..cd9e9f3 100644
--- a/sound/drivers/opl3/opl3_lib.c
+++ b/sound/drivers/opl3/opl3_lib.c
@@ -528,7 +528,7 @@ int snd_opl3_hwdep_new(struct snd_opl3 * opl3,
opl3->hwdep = hw;
opl3->seq_dev_num = seq_device;
-#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE))
+#if IS_REACHABLE(CONFIG_SND_SEQUENCER)
if (snd_seq_device_new(card, seq_device, SNDRV_SEQ_DEV_ID_OPL3,
sizeof(struct snd_opl3 *), &opl3->seq_dev) >= 0) {
strcpy(opl3->seq_dev->name, hw->name);
--
2.7.4
[toc] | [next] | [standalone]
| From | Takashi Iwai <tiwai@suse.de> |
|---|---|
| Date | 2016-11-12 10:20 +0100 |
| Message-ID | <sCCDE-8uX-11@gated-at.bofh.it> |
| In reply to | #1520202 |
On Sat, 12 Nov 2016 09:28:33 +0100,
Fabian Frederick wrote:
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Applied, thanks.
Takashi
> ---
> sound/drivers/opl3/opl3_lib.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c
> index 369cef2..cd9e9f3 100644
> --- a/sound/drivers/opl3/opl3_lib.c
> +++ b/sound/drivers/opl3/opl3_lib.c
> @@ -528,7 +528,7 @@ int snd_opl3_hwdep_new(struct snd_opl3 * opl3,
>
> opl3->hwdep = hw;
> opl3->seq_dev_num = seq_device;
> -#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE))
> +#if IS_REACHABLE(CONFIG_SND_SEQUENCER)
> if (snd_seq_device_new(card, seq_device, SNDRV_SEQ_DEV_ID_OPL3,
> sizeof(struct snd_opl3 *), &opl3->seq_dev) >= 0) {
> strcpy(opl3->seq_dev->name, hw->name);
> --
> 2.7.4
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web