All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE()
@ 2016-11-12  8:28 Fabian Frederick
  2016-11-12  9:18 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2016-11-12  8:28 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, fabf

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE()
  2016-11-12  8:28 [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE() Fabian Frederick
@ 2016-11-12  9:18 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2016-11-12  9:18 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: linux-kernel

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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-12  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-12  8:28 [PATCH 1/1 linux-next] ALSA: opl3: don't opencode IS_REACHABLE() Fabian Frederick
2016-11-12  9:18 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.