From patchwork Sat Jul 5 12:16:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487541 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 D37BCBEEAA for ; Sat, 5 Jul 2014 12:15:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 04B2620357 for ; Sat, 5 Jul 2014 12:15:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 392AB202E9 for ; Sat, 5 Jul 2014 12:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbaGEMPG (ORCPT ); Sat, 5 Jul 2014 08:15:06 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36494 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbaGEMPF (ORCPT ); Sat, 5 Jul 2014 08:15:05 -0400 Received: by mail-wi0-f181.google.com with SMTP id n3so4874994wiv.2 for ; Sat, 05 Jul 2014 05:15:04 -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=QyV7eAAwK8jLHOUZ2OEjgRVyYE0KN5L+vqjdyfZ7oJc=; b=heGB+3w9c0CCezPg37l0OPLrtIfOom5SkbK15gKZbUp96o5FAxN/yws0+JTs22Dh/P bDUyaXYBmzlvFcgvBct1rQlLTv9l3P/RXcvIt4i23R6L+W11pxiII0YhOAFgmK07mpbj bVY+ap3+gMiFRQEb3tJg5b7VGPmtznN6ZLw31scCmBnnefQrvIjl6PkuCkf/Ua0NHjhy uO3Z5LMNgVPbiB/cnqk3pvjtKFpP/E+2tF7+g632UdblAGP9FbOn8RDRwYqUpcJ4bitv ip/Vko+wD+DMWPwjzTvfoqzbAzMdDBE5QE/WLrAaayA8n4YsA6yRG0tAahMbYdrN9lmK rItQ== X-Gm-Message-State: ALoCoQmzTMvKjbQI1ABPyhPeXno5FJfwaY977CtmvxsVTaKIN4RPaZ4Svgen8J3BDVjGfpmGlXdc X-Received: by 10.180.72.38 with SMTP id a6mr63935251wiv.29.1404562504280; Sat, 05 Jul 2014 05:15:04 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ed15sm85759991wic.9.2014.07.05.05.15.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:15:03 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , Daniel Vetter , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: aty: mach64_gx.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:16:20 +0200 Message-Id: <1404562581-18995-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 --- drivers/video/fbdev/aty/mach64_gx.c | 3 +-- 1 file changed, 1 insertion(+), 2 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;