From patchwork Sat Jul 5 12:22:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487681 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 13884BEEAA for ; Sat, 5 Jul 2014 12:21:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B27F20357 for ; Sat, 5 Jul 2014 12:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CE1620263 for ; Sat, 5 Jul 2014 12:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755572AbaGEMU5 (ORCPT ); Sat, 5 Jul 2014 08:20:57 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:55222 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755122AbaGEMU5 (ORCPT ); Sat, 5 Jul 2014 08:20:57 -0400 Received: by mail-wi0-f178.google.com with SMTP id n15so4732046wiw.11 for ; Sat, 05 Jul 2014 05:20:56 -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=kaCApydCeBDh7IXagf1NNAToA/NO+HEDFe9BAz2MzfE=; b=ZFO7Cb8vcyPUnKUSdlW4YC/xwOEWGhbaLUr/TtmN5IfdrD9YrJ407uEh5wLVsSoPeH XPOHEsGTDQC7q5M00HAN2GEFHP0Ko0SHybDuWbstfZOqgZxTWV5LJw/nLpvA1Pt5pEc9 ggq6xHw5g6wi4KxE2C+46p2UjVZ/GLD27vEX/dV4idUCf4xSj7tQgiOdSC87n0ha+7E9 Fl8YSdBnmHEbk33uPLy8DFlgN1HMyMZCvs98zF+0JYfW8/Q0EquorNVnwvbHPEUkngZB Q3X+7wxjsQWBasJJVqWxcM5d/vsffUSDUQuiabWThUFqMhFH2UMzOz4co2RT0ZsdASs2 9MLQ== X-Gm-Message-State: ALoCoQnAL5PCK0nfWY6X7pN9U078+wjY45YGnJ02bES3lM5mjAjoLYQk4f/yUqY2YzjSq6fE38rr X-Received: by 10.180.13.208 with SMTP id j16mr24306303wic.15.1404562856018; Sat, 05 Jul 2014 05:20:56 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id lo18sm90615158wic.1.2014.07.05.05.20.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:20:55 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , Laurent Pinchart , Masanari Iida , "H. Peter Anvin" , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: gbefb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:22:12 +0200 Message-Id: <1404562932-19522-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/gbefb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/gbefb.c b/drivers/video/fbdev/gbefb.c index 4aa56ba..4227570 100644 --- a/drivers/video/fbdev/gbefb.c +++ b/drivers/video/fbdev/gbefb.c @@ -205,7 +205,7 @@ static void gbe_reset(void) static void gbe_turn_off(void) { int i; - unsigned int val, x, y, vpixen_off; + unsigned int val, y, vpixen_off; gbe_turned_on = 0; @@ -256,7 +256,7 @@ static void gbe_turn_off(void) for (i = 0; i < 100000; i++) { val = gbe->vt_xy; - x = GET_GBE_FIELD(VT_XY, X, val); + GET_GBE_FIELD(VT_XY, X, val); y = GET_GBE_FIELD(VT_XY, Y, val); if (y < vpixen_off) break; @@ -267,7 +267,7 @@ static void gbe_turn_off(void) "gbefb: wait for vpixen_off timed out\n"); for (i = 0; i < 10000; i++) { val = gbe->vt_xy; - x = GET_GBE_FIELD(VT_XY, X, val); + GET_GBE_FIELD(VT_XY, X, val); y = GET_GBE_FIELD(VT_XY, Y, val); if (y > vpixen_off) break;