From patchwork Wed Jan 17 14:46:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10169405 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 DD893603ED for ; Wed, 17 Jan 2018 14:47:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEA9F274D1 for ; Wed, 17 Jan 2018 14:47:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2CDB2834A; Wed, 17 Jan 2018 14:47:24 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72AE7274D1 for ; Wed, 17 Jan 2018 14:47:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753158AbeAQOrX (ORCPT ); Wed, 17 Jan 2018 09:47:23 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:50175 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753361AbeAQOrX (ORCPT ); Wed, 17 Jan 2018 09:47:23 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lirv8-1f7JzE1c8E-00dEPS; Wed, 17 Jan 2018 15:46:46 +0100 From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , Arnaud Pouliquen , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] IIO: ADC: stm32-dfsdm: remove unused variable Date: Wed, 17 Jan 2018 15:46:24 +0100 Message-Id: <20180117144644.2302131-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:xnawctXefDCFsDlrdfiBybJV/LsD7alw5RxYY8D7HnWSNilmg8g JxNBE/ha1ioXqurWU3tVzPCaIwBCDWjIh2V+g7rTzoVwMuORTkSpDYVM4tTeEPBmJM7h7mt kobxC5Jtg67mKsI1ZXeSBnT/nZ+IzHs9RYdr3iXe/u6J6ZCU+drYQDQkc6RuJoy+0oJmJXH YQ2myvb23LYabc7HIzkPg== X-UI-Out-Filterresults: notjunk:1; V01:K0:n/EVngdogsE=:4Wbwzeg03r3OLOkVjcJr/v rN7peCQUXGIiJTpI7tSPAY+RHTQeCwpQAx/FPS0zQ9R16H3eJOeBjAqxJvR7u6Ryb0kxeVGS8 ys6+3bytsFqRhVR8HRrX+7BiRjKMVOGC5S1dLW+32PCyAGPA6l+XBI9YruU12RE+t4l0fdwrd INW3xNbWqtYqfJopLkoxGjZSaVWv8tn4AMEVAgKPjaZgnTXrtNtcDzGidy5W275xJ4MArfAQG FAlwCQ5i7r+A6HpIsWlGhKKbZ1HCsQcNmwOJ/5WgTqkvGL/Zy5cMPlGpd9y5TdX38oOisQHiO wwLn6vwjHQPC8Om2gvGn1f2f18CKDwL7ks9zptyOufVYKe5h1UNTH4VKSiNLa2CaQMlkiltfi ZOpHqm1I7bqTrzNxFVkQ2r75Fv+Ju2PjibCi17zsOa8nWxG42ww1HNFcBzIkUyEa5TNxsPV6O 2CIRXCJxWKnVmHiej0o3YV8cIMPSsUlaWUNWNKY6GzwoJHRnn/ZU4L91YNu7ZHAL8ootsVNVy 3us3ifZGU6FtRf73BWCCd0vDxkZcpIIuHpU5doyPSN0+pyu1HCiNhJFe62UOwejmJjQju+iun 3d8wKQ7iKxnVKJGsrIIe2svM8sNDJSCnJkkzlzSCYiKqSKIEPuXcCFnp8RUysiGPVDZ4Uhw9C j6ZVjB6r6sFej6D3G66a53r5exMAu/ZLizTRszf4R33uJnJCxybE4rocEJXrgb1PR1m+17KRe p/wvuqncucwqthnuK/NbPyYn3prlo4j3zBU2Cg== Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A cleanup left one variable behind that is no longer needed and can be removed, as shown by the gcc warning: drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': drivers/iio/adc/stm32-dfsdm-core.c:245:29: error: unused variable 'of_id' [-Werror=unused-variable] Fixes: abaca806fd13 ("IIO: ADC: stm32-dfsdm: code optimization") Signed-off-by: Arnd Bergmann --- drivers/iio/adc/stm32-dfsdm-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c index 84277bcc465f..6290332cfd3f 100644 --- a/drivers/iio/adc/stm32-dfsdm-core.c +++ b/drivers/iio/adc/stm32-dfsdm-core.c @@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match); static int stm32_dfsdm_probe(struct platform_device *pdev) { struct dfsdm_priv *priv; - const struct of_device_id *of_id; const struct stm32_dfsdm_dev_data *dev_data; struct stm32_dfsdm *dfsdm; int ret;