From patchwork Sat Jul 5 12:23:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487721 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E90E69F26C for ; Sat, 5 Jul 2014 12:21:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 314C620357 for ; Sat, 5 Jul 2014 12:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5182620263 for ; Sat, 5 Jul 2014 12:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755466AbaGEMVz (ORCPT ); Sat, 5 Jul 2014 08:21:55 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:63517 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753980AbaGEMVz (ORCPT ); Sat, 5 Jul 2014 08:21:55 -0400 Received: by mail-wi0-f174.google.com with SMTP id bs8so13866188wib.7 for ; Sat, 05 Jul 2014 05:21:54 -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=DeZQFCMP8AD1QfPUL8iU0NYamYk2R1/Aogh1BzCf7EI=; b=WSwQqxoAEqGQaefg/cgSObc3y1zZXNJ2Fs2xv0nvGKWINKSMX3s6SiZq3vMoLnd57r O0vFCDeqzU88d7ny8scOfpv0s5QC2r3rNaNvenq9HnScqclubEG244A8bQVtgpPTVOoy L8ZcZm0x+taigUX/cXhOp8G9LiLlZtqv/pq/qQ9dJZOueJExdhSJ0+ADg/XlGvU7XKyg 4COV/hei2Zs/1DrogyVBYghDfiaVbVcm4VXPD/2X9ViGBBRUQ83MUW7dUkRYPctwnzaN jrFisDZq+XGBl4UKr1L6T33i1e/8rKYZBaoY8RvjBrjjbxq8UC0y+bF7JPQmbhc3TqtJ MKXg== X-Gm-Message-State: ALoCoQkLXutYt7LHG/qfsrtevRS6kMwcHDymXU3nM43njpiTupA/y9UWMFPVFMWBv0iDIg4vlyzh X-Received: by 10.180.72.38 with SMTP id a6mr63967604wiv.29.1404562914002; Sat, 05 Jul 2014 05:21:54 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id dt7sm90586766wic.6.2014.07.05.05.21.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:21:53 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Daniel Vetter , Julia Lawall , Laurent Pinchart , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: i810: i810_main.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:23:10 +0200 Message-Id: <1404562990-19606-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/i810/i810_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index bb674e4..754ef33 100644 --- a/drivers/video/fbdev/i810/i810_main.c +++ b/drivers/video/fbdev/i810/i810_main.c @@ -1135,12 +1135,11 @@ static int encode_fix(struct fb_fix_screeninfo *fix, struct fb_info *info) static void decode_var(const struct fb_var_screeninfo *var, struct i810fb_par *par) { - u32 xres, yres, vxres, vyres; + u32 xres, yres, vxres; xres = var->xres; yres = var->yres; vxres = var->xres_virtual; - vyres = var->yres_virtual; switch (var->bits_per_pixel) { case 8: