From patchwork Fri Feb 6 14:17:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5791991 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6400ABF440 for ; Fri, 6 Feb 2015 14:17:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A3ED201F5 for ; Fri, 6 Feb 2015 14:17:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 840CB201F2 for ; Fri, 6 Feb 2015 14:17:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754339AbbBFORm (ORCPT ); Fri, 6 Feb 2015 09:17:42 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:37058 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbbBFORm (ORCPT ); Fri, 6 Feb 2015 09:17:42 -0500 Received: by pdbfp1 with SMTP id fp1so15001212pdb.4; Fri, 06 Feb 2015 06:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=IxAhSUq3SKNnXMEIFrO8SOIEYSkoCtF+qMlcNlQNrmY=; b=aumDiwb8cYLCOSnVH8EFmhHKSXoH6rw1b3QyIZ0uc404RmIo7cItOWAysTXE15nznN uMOK1BRnk7wh4up/RbiCckmfpfz1vGeCWM6LVWciEaF9OS4aFUAIB5r1U/d9iC8MX3rj v8A3sLykD9IxAcU6AGjPQxq7hGPZn3Ea5mCXKaKnfHMeGeifnTc9nP4wzg+shcvcbQ4h VO6iryjs2Otwvn3/l8ZBYi+mXMXz+ECU12DbrsO+KxwhbaETE1tTWSQJ3IbvsmwGO7gj cYDlATi2Xu1dw9PAvHRGcBBT+c4mEMX04YlvNCPIrAqdDCuN7ELNwiWz2LbIH5ssYseg YJlQ== X-Received: by 10.70.126.100 with SMTP id mx4mr6239863pdb.138.1423232261561; Fri, 06 Feb 2015 06:17:41 -0800 (PST) Received: from localhost.localdomain ([122.169.140.25]) by mx.google.com with ESMTPSA id jz5sm8260207pbc.0.2015.02.06.06.17.38 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Feb 2015 06:17:41 -0800 (PST) From: Sudip Mukherjee To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Benjamin Herrenschmidt Cc: Sudip Mukherjee , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: aty: remove some unneeded variables Date: Fri, 6 Feb 2015 19:47:31 +0530 Message-Id: <1423232251-21511-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 mach64RefFreq, hSyncPol, vSyncPol, cSync and bytpp were only being assigned some values but were never used after that. Signed-off-by: Sudip Mukherjee --- drivers/video/fbdev/aty/mach64_gx.c | 3 +-- drivers/video/fbdev/aty/radeon_base.c | 10 ++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/video/fbdev/aty/mach64_gx.c b/drivers/video/fbdev/aty/mach64_gx.c index 10c988a..fcb51b1 100644 --- a/drivers/video/fbdev/aty/mach64_gx.c +++ b/drivers/video/fbdev/aty/mach64_gx.c @@ -617,14 +617,13 @@ static int aty_var_to_pll_8398(const struct fb_info *info, u32 vclk_per, u32 mhz100; /* in 0.01 MHz */ u32 program_bits; /* u32 post_divider; */ - u32 mach64MinFreq, mach64MaxFreq, mach64RefFreq; + u32 mach64MinFreq, mach64MaxFreq; u16 m, n, k = 0, save_m, save_n, twoToKth; /* Calculate the programming word */ mhz100 = 100000000 / vclk_per; mach64MinFreq = MIN_FREQ_2595; mach64MaxFreq = MAX_FREQ_2595; - mach64RefFreq = REF_FREQ_2595; /* 14.32 MHz */ save_m = 0; save_n = 0; diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c index 26d80a4..aee65ba 100644 --- a/drivers/video/fbdev/aty/radeon_base.c +++ b/drivers/video/fbdev/aty/radeon_base.c @@ -1532,14 +1532,14 @@ static int radeonfb_set_par(struct fb_info *info) struct fb_var_screeninfo *mode = &info->var; struct radeon_regs *newmode; int hTotal, vTotal, hSyncStart, hSyncEnd, - hSyncPol, vSyncStart, vSyncEnd, vSyncPol, cSync; + vSyncStart, vSyncEnd; u8 hsync_adj_tab[] = {0, 0x12, 9, 9, 6, 5}; u8 hsync_fudge_fp[] = {2, 2, 0, 0, 5, 5}; u32 sync, h_sync_pol, v_sync_pol, dotClock, pixClock; int i, freq; int format = 0; int nopllcalc = 0; - int hsync_start, hsync_fudge, bytpp, hsync_wid, vsync_wid; + int hsync_start, hsync_fudge, hsync_wid, vsync_wid; int primary_mon = PRIMARY_MONITOR(rinfo); int depth = var_to_depth(mode); int use_rmx = 0; @@ -1612,13 +1612,7 @@ static int radeonfb_set_par(struct fb_info *info) else if (vsync_wid > 0x1f) /* max */ vsync_wid = 0x1f; - hSyncPol = mode->sync & FB_SYNC_HOR_HIGH_ACT ? 0 : 1; - vSyncPol = mode->sync & FB_SYNC_VERT_HIGH_ACT ? 0 : 1; - - cSync = mode->sync & FB_SYNC_COMP_HIGH_ACT ? (1 << 4) : 0; - format = radeon_get_dstbpp(depth); - bytpp = mode->bits_per_pixel >> 3; if ((primary_mon == MT_DFP) || (primary_mon == MT_LCD)) hsync_fudge = hsync_fudge_fp[format-1];