From patchwork Tue May 19 15:20:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 6439061 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 69E789F399 for ; Tue, 19 May 2015 15:21:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FBE0205E2 for ; Tue, 19 May 2015 15:21:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5AB572058E for ; Tue, 19 May 2015 15:21:11 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7884F2614C4; Tue, 19 May 2015 17:21:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id EEA61260589; Tue, 19 May 2015 17:20:58 +0200 (CEST) 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 8E262260589; Tue, 19 May 2015 17:20:55 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by alsa0.perex.cz (Postfix) with ESMTP id 9DA832604AF for ; Tue, 19 May 2015 17:20:47 +0200 (CEST) Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0LeAyi-1ZXO0J1rSe-00pxjE; Tue, 19 May 2015 17:20:39 +0200 From: Arnd Bergmann To: alsa-devel@alsa-project.org, Takashi Iwai Date: Tue, 19 May 2015 17:20:36 +0200 Message-ID: <14010746.Ukv1maRMaG@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:17/pee6dunPzt3GFeR9hwko1DQ/b4yXOL6j8MMTCjF/+ylAjW7N MeJj+ZUBnLozkcYXdqE83LGwHT/l1C0Q5RBV8rubQ88JXNO5DO1PoVU1l5ZRhFbn8Gek02v isgOeWMrljES66mmpkBivb5cRY1QXkdhC5jjLZjGeII6aaz8vEp0fbESB6V525dj4x4Ks4Y U3e5o5NXw/sUF0MynZlfQ== X-UI-Out-Filterresults: notjunk:1; Cc: Alexander Stein , Nicolas Ferre , broonie@kernel.org, Alexandre Belloni Subject: [alsa-devel] [PATCH] ALSA: sound/atmel/ac97c.c: remove unused variable 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The recently added DT support for the ac97 driver is causing a gcc warning: sound/atmel/ac97c.c: In function 'atmel_ac97c_probe_dt': sound/atmel/ac97c.c:919:29: warning: unused variable 'match' [-Wunused-variable] const struct of_device_id *match; The variable is clearly unused, so we can remove it. Signed-off-by: Arnd Bergmann Acked-by: Alexander Stein diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index cf4cedf2b420..6dad042630d8 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev) { struct ac97c_platform_data *pdata; struct device_node *node = dev->of_node; - const struct of_device_id *match; if (!node) { dev_err(dev, "Device does not have associated DT data\n");