From patchwork Sat Jul 5 12:15:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487521 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 1B01BBEEAA for ; Sat, 5 Jul 2014 12:14:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1856920357 for ; Sat, 5 Jul 2014 12:14:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B4C7202E9 for ; Sat, 5 Jul 2014 12:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbaGEMOI (ORCPT ); Sat, 5 Jul 2014 08:14:08 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:45583 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbaGEMOH (ORCPT ); Sat, 5 Jul 2014 08:14:07 -0400 Received: by mail-wg0-f46.google.com with SMTP id y10so2531914wgg.5 for ; Sat, 05 Jul 2014 05:14:06 -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=62E6jRU0ymeMaUIfjpxFX6ZCIB+h+ct88PIOwcC7SPU=; b=WTxkQXUSITU78lDXlbmUmfC0MfXuIwtqMq91W5JbpHYICTdTDPA+cpLiUGucwmqnoD 5SGPOMz5+LOFcEo3hFJ86FNxpUZkYIcnLf4o4bTnTCGOYVfLa18QxnXrRds79D/7muLX bbSXlQo6XG/vYrTIItg6kp3r8Y1a0d20KHX6eoO7RLaI0EJvRNe30DdTcOCcdT7grg1T 2ppUeEL0mNv59G3XhruhJZC08H7fBK0B5wLRUrooUQ7FKbWHBHdtdOabizzgneMbFD1+ SWpPhskxB6OzmZISGeKEnkIJmAB9nQN6tlAppv5aq2pWDdoLJAACp/AswhYsdiYR03f7 JdjQ== X-Gm-Message-State: ALoCoQmK8m07NCL7tTWAOsfwYBZ0gZNKBJmn/VYsrX45eRO7Kri0Q9AB+sHvdLp5BgEORE/JM2LZ X-Received: by 10.180.83.202 with SMTP id s10mr64557672wiy.25.1404562446157; Sat, 05 Jul 2014 05:14:06 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id fb15sm90487654wid.23.2014.07.05.05.14.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:14:05 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , 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: Sat, 5 Jul 2014 14:15:22 +0200 Message-Id: <1404562522-18911-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=-6.9 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 From: Rickard Strandqvist 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. */