Received: by 10.223.185.116 with SMTP id b49csp1038496wrg; Fri, 23 Feb 2018 10:47:51 -0800 (PST) X-Google-Smtp-Source: AH8x225mz+R0EskVDB+VAq7FpQMCnkaEIY+2sO0hXH93D7o7alhRFGF1kRAQi1sK3NGok+z3PXUY X-Received: by 2002:a17:902:b185:: with SMTP id s5-v6mr2548727plr.109.1519411671394; Fri, 23 Feb 2018 10:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411671; cv=none; d=google.com; s=arc-20160816; b=PJtnozCtkxhWPveDqKVgZ7QXW+dwEStaI+DSeZ6H6iOCoWWqSWToGITARX/i+PPXTr hJx1FC2vu17OdaYAldLtjEsxpj81L1Byvg6mpC5RgASMhENjuScBxtMQaJbrKIoecUh9 MmQfdBrWlsUYVZOzF+4duaqGmB7ZzJwpXfX7R9OuCg4kXzIqBpxRXrbbPM3B9YNtUT25 Y/gSWQi5jWj1/ZIpTprhks/bkn07EWR5B3O1jgehkH2gWzninCBV/UFDxI3KlFy6NvRB GK4TjYRIw9Uqtuhba4Gk7Q793hiHc7W4XzdvmVqIWcFs1QJL0Gas2r2r1zuiJDit43UY aeYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pL0n9US8t2dKp/ETvcmFKPzG23TjIM5mSEMtzbq4L1k=; b=k6AxwEvLG3NPuR1eMsWn8OWOI+/LDC5yQm+Y2PX4xWQ4fE55+Q8u9MqjmC7ByN/9So FbthZDuCrVyCxxmbS39Ib9R2odvScWxqQrGeZEk1jZKSTJLCXH2nNWdX94PlcEDAM4KA iblMPRwX5ySk+ylHZZBeqbfvknJ8XuJ6yXAy9em03Tok3Q7dHdUXiw5hTnsqSTCI3m8r nmOc/EEKfDrAgn+bzdLcuMdNq0a+Vnvgj24nqtY+R8jKHGQutBSIidAzZtQJAuRmkVPe mu+jvlea0ezKXujbpGi73paRXT8f64H7QrNhIT5ItVqTCuNYlYy+jKAFrHCvFIo12bCY 397w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si2133182plh.403.2018.02.23.10.47.36; Fri, 23 Feb 2018 10:47:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934069AbeBWSqx (ORCPT + 99 others); Fri, 23 Feb 2018 13:46:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43896 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934058AbeBWSqu (ORCPT ); Fri, 23 Feb 2018 13:46:50 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 857A83C1; Fri, 23 Feb 2018 18:46:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Florian Tobias Schandinat , Bartlomiej Zolnierkiewicz Subject: [PATCH 4.9 102/145] video: fbdev: via: remove possibly unused variables Date: Fri, 23 Feb 2018 19:26:48 +0100 Message-Id: <20180223170738.000343708@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 484c7bbf2649831714da3a0fa30213977458e9b5 upstream. When CONFIG_PROC_FS is disabled, we get warnings about unused variables as remove_proc_entry() evaluates to an empty macro. drivers/video/fbdev/via/viafbdev.c: In function 'viafb_remove_proc': drivers/video/fbdev/via/viafbdev.c:1635:4: error: unused variable 'iga2_entry' [-Werror=unused-variable] drivers/video/fbdev/via/viafbdev.c:1634:4: error: unused variable 'iga1_entry' [-Werror=unused-variable] These are easy to avoid by using the pointer from the structure. Signed-off-by: Arnd Bergmann Cc: Florian Tobias Schandinat Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/via/viafbdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/drivers/video/fbdev/via/viafbdev.c +++ b/drivers/video/fbdev/via/viafbdev.c @@ -1630,16 +1630,14 @@ static void viafb_init_proc(struct viafb } static void viafb_remove_proc(struct viafb_shared *shared) { - struct proc_dir_entry *viafb_entry = shared->proc_entry, - *iga1_entry = shared->iga1_proc_entry, - *iga2_entry = shared->iga2_proc_entry; + struct proc_dir_entry *viafb_entry = shared->proc_entry; if (!viafb_entry) return; - remove_proc_entry("output_devices", iga2_entry); + remove_proc_entry("output_devices", shared->iga2_proc_entry); remove_proc_entry("iga2", viafb_entry); - remove_proc_entry("output_devices", iga1_entry); + remove_proc_entry("output_devices", shared->iga1_proc_entry); remove_proc_entry("iga1", viafb_entry); remove_proc_entry("supported_output_devices", viafb_entry);