From patchwork Sun Jul 6 18:25:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490571 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 635BBBEEAA for ; Sun, 6 Jul 2014 18:24:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92CB5202A1 for ; Sun, 6 Jul 2014 18:24:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB4B32022D for ; Sun, 6 Jul 2014 18:24:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751853AbaGFSYk (ORCPT ); Sun, 6 Jul 2014 14:24:40 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:42317 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbaGFSYk (ORCPT ); Sun, 6 Jul 2014 14:24:40 -0400 Received: by mail-wi0-f180.google.com with SMTP id hi2so5688645wib.1 for ; Sun, 06 Jul 2014 11:24:39 -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=1bvwZr4rqayrK0LgvA+LNiinxwO9c9gZilQQAL3MPEY=; b=Z2YQEJylplJl2/BySq1DcJxxc2pIAHIro2XhWuiW82NcY+4nRNNx2nTmHyVsy7uh09 nmcDmAUFiOkM4Bi9DtdPhlsRL2zC7rz7l8NcfWFwQSoG7g/qFwQ59XnkXpqDyIwtwjbB 4DRs5GKWjcd1znuXYVFpm/X3+wRo1BYP/lpgFV8/8hmZQTTf5vpcRDVJLXI5N6K4VGzC gCmdL7fd56X0L+lgfflWWnuOhO58oOPP60tY6MqyUO3fEgW+zqYhJgReBdXLlZoIpg3E cPzLFermSZ78iUnNUPDugVxzIfQcJ+slGOVYoQwAJSaoNqJBgLKxHdUWrniSX+ualhaO TQFQ== X-Gm-Message-State: ALoCoQlzuTb/5qeU+b5u81KvqAIvin9MbGBQXbR07RNud/j7rbBfxzCq83+ew4Zq+sW8ESFnHoOM X-Received: by 10.194.243.200 with SMTP id xa8mr4533430wjc.97.1404671079005; Sun, 06 Jul 2014 11:24:39 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id mv3sm30772797wic.21.2014.07.06.11.24.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:24:38 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , 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: Sun, 6 Jul 2014 20:25:55 +0200 Message-Id: <1404671155-17676-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 --- 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;