From patchwork Sun Jul 6 18:33: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: 4490741 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 44E0F9F36A for ; Sun, 6 Jul 2014 18:31:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F7E02022D for ; Sun, 6 Jul 2014 18:31:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5984420219 for ; Sun, 6 Jul 2014 18:31:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbaGFSbz (ORCPT ); Sun, 6 Jul 2014 14:31:55 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:48131 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696AbaGFSby (ORCPT ); Sun, 6 Jul 2014 14:31:54 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi2so14928700wib.17 for ; Sun, 06 Jul 2014 11:31:53 -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=P0JPEa4CXD8MNjjP8To5JOj5FveD3v2QA9LV17iBAgc=; b=Wp91sfcY334Qnw61q0DZQuiuU/pu6UQLLj8yla54FUU74Unu68Fckur5djkVVvrGNq FxHLIc6Rv7+r/WBffSbLnAUNr0nqsaSC8qXFHbye6ljvsGibGSvCN76zkQKaahRt4zTa rhAcdTpBrFM4OwGXz+Mnb41+JlFQ9/tMAiHjP6xPRX0PEGOPZ+mc6cUkbF8c25S5tMLo 2ILStMs0f0gF4/ZlthGXvhnRGEDTabbL8ZNpSX3iP31m9MtchZrfHPATPtveiVuRsiC7 ee80owCIxkZ8Jlt1Ssss9oqdDH8VtfA2NNErqPahXiKdbS2M6IF3hzMmCpLlK+XD6ikz PvZA== X-Gm-Message-State: ALoCoQnUlrHCAV2VXbqs1zRWOXh2nnfy5KW4o4J+G/tgTXOhtJv9XoEW3Lb0WRU2ih/Tu4SJtVih X-Received: by 10.194.189.50 with SMTP id gf18mr27091976wjc.13.1404671513855; Sun, 06 Jul 2014 11:31:53 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id o3sm105719059wix.15.2014.07.06.11.31.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:31:53 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Daniel Vetter , Julia Lawall , 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: Sun, 6 Jul 2014 20:33:10 +0200 Message-Id: <1404671590-18288-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/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: