From patchwork Sun Jul 6 18:24:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490551 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CD9C3BEEAA for ; Sun, 6 Jul 2014 18:23:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E45D3202A1 for ; Sun, 6 Jul 2014 18:23:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A7DF2022D for ; Sun, 6 Jul 2014 18:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbaGFSXi (ORCPT ); Sun, 6 Jul 2014 14:23:38 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34691 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbaGFSXi (ORCPT ); Sun, 6 Jul 2014 14:23:38 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so5676014wib.6 for ; Sun, 06 Jul 2014 11:23:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AmeZBjLGXIRSWwUtxSmx5DAi1fA3OIN+buSvHXdjO48=; b=Tjz42lhNiQgiI+m/fnOsVXOWFvcuuM5YZxICkw6v6Xc9bqpwkC09Hpsl0uAQcxPUoZ 6+onHI8J6KSg3dP9XOmH4C9kSlWxiAfg/dljG9QIeAvcm7KBPZvJk4v3AozOcA1sG7Mk 0ti6ICLgivflPXWavWRM+6v/2+JN1teo9m6EdpUT0v8IJqQ8bo2uyKFcpPH2Og2fZlMD HeAG4mnM+xceg5g2Ued5IHKqIarAHf2pylU4iEfzdagFw1W1kgtDJAatm1SAW7LWY096 INilWo4RP1Qn5YHtWmhSMqBrR+7MaYe0Aj6g5T9xMvX/byQnYHZ0Af9yQUW3/TnMV3B0 krNQ== X-Gm-Message-State: ALoCoQmYhIs2t+ky1hmPCaREAVYzFA/YcB6FtPcU3aHF+qLU/6nQevJcJ6H5UtWms9/SaWebwVEt X-Received: by 10.194.238.231 with SMTP id vn7mr3961035wjc.99.1404671016986; Sun, 06 Jul 2014 11:23:36 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id d4sm88111893wik.20.2014.07.06.11.23.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:23:36 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Mikulas Patocka , Jingoo Han , Daniel Vetter , Randy Dunlap , Dan Carpenter , Sachin Kamat , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: aty: atyfb_base.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:24:53 +0200 Message-Id: <1404671093-17590-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist Acked-by: Mikulas Patocka --- drivers/video/fbdev/aty/atyfb_base.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index c3d0074..46188a4 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -3088,7 +3088,6 @@ static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, if (dp == of_console_device) { struct fb_var_screeninfo *var = &default_var; unsigned int N, P, Q, M, T, R; - u32 v_total, h_total; struct crtc crtc; u8 pll_regs[16]; u8 clock_cntl; @@ -3104,9 +3103,6 @@ static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, crtc.gen_cntl = aty_ld_le32(CRTC_GEN_CNTL, par); aty_crtc_to_var(&crtc, var); - h_total = var->xres + var->right_margin + var->hsync_len + var->left_margin; - v_total = var->yres + var->lower_margin + var->vsync_len + var->upper_margin; - /* * Read the PLL to figure actual Refresh Rate. */