From patchwork Thu May 10 10:56:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10391703 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 E44846028E for ; Thu, 10 May 2018 10:56:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D431E289F7 for ; Thu, 10 May 2018 10:56:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8C9B289EA; Thu, 10 May 2018 10:56:31 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, 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 7134E289EA for ; Thu, 10 May 2018 10:56:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756832AbeEJK43 (ORCPT ); Thu, 10 May 2018 06:56:29 -0400 Received: from osg.samsung.com ([64.30.133.232]:47621 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756679AbeEJK43 (ORCPT ); Thu, 10 May 2018 06:56:29 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 6A9692E7B7; Thu, 10 May 2018 03:56:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HKVL8mOgcXqw; Thu, 10 May 2018 03:56:27 -0700 (PDT) Received: from smtp.s-opensource.com (177.41.96.165.dynamic.adsl.gvt.net.br [177.41.96.165]) by osg.samsung.com (Postfix) with ESMTPSA id 5AD482E7B0; Thu, 10 May 2018 03:56:27 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.90_1) (envelope-from ) id 1fGjFI-00047C-Oy; Thu, 10 May 2018 06:56:24 -0400 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab , Akihiro Tsukada Subject: [PATCH] qm1d1b0004: fix a warning about an unused default_cfg var Date: Thu, 10 May 2018 06:56:23 -0400 Message-Id: <3b7158d61a27b7701356969c6fed353a7c67b45e.1525949774.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.17.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As warned by gcc: drivers/media/tuners/qm1d1b0004.c:62:39: warning: 'default_cfg' defined but not used [-Wunused-const-variable=] static const struct qm1d1b0004_config default_cfg = { ^~~~~~~~~~~ This var is currently unused. So, comment it out. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/tuners/qm1d1b0004.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/tuners/qm1d1b0004.c b/drivers/media/tuners/qm1d1b0004.c index 9dac1b875c18..b4495cc1626b 100644 --- a/drivers/media/tuners/qm1d1b0004.c +++ b/drivers/media/tuners/qm1d1b0004.c @@ -59,10 +59,12 @@ #define QM1D1B0004_XTL_FREQ 4000 #define QM1D1B0004_LPF_FALLBACK 30000 +#if 0 /* Currently unused */ static const struct qm1d1b0004_config default_cfg = { .lpf_freq = QM1D1B0004_CFG_LPF_DFLT, .half_step = false, }; +#endif struct qm1d1b0004_state { struct qm1d1b0004_config cfg;