From patchwork Sun Jul 6 18:32:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490711 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 11E11BEEAA for ; Sun, 6 Jul 2014 18:30:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BA2C202A1 for ; Sun, 6 Jul 2014 18:30:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 61D252022D for ; Sun, 6 Jul 2014 18:30:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752056AbaGFSax (ORCPT ); Sun, 6 Jul 2014 14:30:53 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:50080 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbaGFSax (ORCPT ); Sun, 6 Jul 2014 14:30:53 -0400 Received: by mail-wi0-f171.google.com with SMTP id n15so14925606wiw.4 for ; Sun, 06 Jul 2014 11:30:51 -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=gsk+ihTdQenVIwzmzsIbHVCXFrfTCu17PR4DJCnxDGs=; b=mD8+ySKjhvGUVhwBNzw2hbzvSyg/AjkTPWsnAMKAi1rBJOTVY+rDU665MQ1npmyYfz wKdqdg6C359w0JbmLHf4YNMOtIRccLArRJGcoNx/HO4g90FzYlM6Kezw/esN0V8rXefA QQnCDvHtpIuqW3vcIPl1LutHodgKtUf9BKgiFNYp2cfhyojFf1PUAjVLKxF0byuCYqcN FI2i6ZrQRV/S2RhlJeANSYS1ssMV/II9r5sTHtmNWukzwiG7ELxvcltqVJR9F6ttajrJ oYw3n51BUlJlMRlh/tmSuzNHm3Nw4nQC0ZANRRUqKY803l6dBno1Es92GCRzDWEZoEdh oQdA== X-Gm-Message-State: ALoCoQlhM1PTVlbFSrJ9szwuGuuIS9DwGkB4cvDjajX7KG+AJheuhfR7k8Tm8nrCbRio4dZY5ZF1 X-Received: by 10.180.212.68 with SMTP id ni4mr31525584wic.64.1404671451901; Sun, 06 Jul 2014 11:30:51 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ft2sm96640491wib.1.2014.07.06.11.30.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:30:51 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , 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: Sun, 6 Jul 2014 20:32:07 +0200 Message-Id: <1404671528-18203-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/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;