From patchwork Sat Nov 12 08:33:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9424007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7FDF460476 for ; Sat, 12 Nov 2016 10:03:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72F6D28C50 for ; Sat, 12 Nov 2016 10:03:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 674592965A; Sat, 12 Nov 2016 10:03:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9648F28C50 for ; Sat, 12 Nov 2016 10:03:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D366E2676F6; Sat, 12 Nov 2016 11:03:54 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BE1722676EE; Sat, 12 Nov 2016 11:01:29 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id ED2F42676B6; Sat, 12 Nov 2016 09:33:54 +0100 (CET) Received: from mailrelay104.isp.belgacom.be (mailrelay104.isp.belgacom.be [195.238.20.131]) by alsa0.perex.cz (Postfix) with ESMTP id D2B57266B0F for ; Sat, 12 Nov 2016 09:33:49 +0100 (CET) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BfAgDs0iZY/1QC9FFdHAEBBAEBCgEBg?= =?us-ascii?q?zEBAQEBAR+BWI0+qVuCD4IHhiOCDUAUAQIBAQEBAQEBYiiFDy8jT0skE4hlsRI?= =?us-ascii?q?9jASGPItuC4MKBZo+kF0CkB5JkQMeN4ECgmkBC0YcgV49NIdVAQEB?= Received: from 84.2-244-81.adsl-dyn.isp.belgacom.be (HELO inkjet2.lan) ([81.244.2.84]) by relay.skynet.be with ESMTP; 12 Nov 2016 09:33:48 +0100 From: Fabian Frederick To: Clemens Ladisch Date: Sat, 12 Nov 2016 09:33:45 +0100 Message-Id: <1478939625-1625-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.7.4 Cc: fabf@skynet.be, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 1/1 linux-next] ALSA: opl4: don't opencode IS_REACHABLE() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Fabian Frederick --- sound/drivers/opl4/opl4_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/drivers/opl4/opl4_lib.c b/sound/drivers/opl4/opl4_lib.c index 89c7aa0..240656e 100644 --- a/sound/drivers/opl4/opl4_lib.c +++ b/sound/drivers/opl4/opl4_lib.c @@ -153,7 +153,7 @@ static int snd_opl4_detect(struct snd_opl4 *opl4) return 0; } -#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) +#if IS_REACHABLE(CONFIG_SND_SEQUENCER) static void snd_opl4_seq_dev_free(struct snd_seq_device *seq_dev) { struct snd_opl4 *opl4 = seq_dev->private_data; @@ -249,7 +249,7 @@ int snd_opl4_create(struct snd_card *card, snd_opl4_create_mixer(opl4); snd_opl4_create_proc(opl4); -#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) +#if IS_REACHABLE(CONFIG_SND_SEQUENCER) opl4->seq_client = -1; if (opl4->hardware < OPL3_HW_OPL4_ML) snd_opl4_create_seq_dev(opl4, seq_device);