From patchwork Sat Jul 5 12:43:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488121 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 E937DBEEAA for ; Sat, 5 Jul 2014 12:42:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1FCBE2021F for ; Sat, 5 Jul 2014 12:42:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B81A20212 for ; Sat, 5 Jul 2014 12:42:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752052AbaGEMmM (ORCPT ); Sat, 5 Jul 2014 08:42:12 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36117 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbaGEMmM (ORCPT ); Sat, 5 Jul 2014 08:42:12 -0400 Received: by mail-wi0-f181.google.com with SMTP id n3so4879739wiv.14 for ; Sat, 05 Jul 2014 05:42:11 -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=ctoWngcZzMdg6xqJPS8+rE2NwxcZczkCQmC2jzA8yG4=; b=H7B4P0EdQgudCxcn+NzHfGZjNlVLkPP9o6IH6EJPGtTIoCF6h/DAeAUIhhCYeyUDKg Oxn3upqtAlKyy8Yzbog0PQsPIlfk5G6qfCrhNPx8Ll1BVxf3+6Rao+MxCZzOSbOxYftS /s10upA0ViYE/HaDz9uLAN/V2M9yTacVJEmDQ31s2a9f5f5o6iydMSrXYjEfQazusw6Q H3HD6DOz3ocThkDQ75iOjsI+4bU/1et5JbqfDr8ErtRbwH8PqBwLTUHHP99ZZprgIdU3 q4V+iLoA3mmxpr/Jr+rT86ak42mzvsn2M0H9LrW1m/Ms68wI2gRzTrXnNQZsUix1qirS 6poQ== X-Gm-Message-State: ALoCoQlsZYSevASUDKEKePvEFsI6/HczzF4NlT8aITi3TWX7uh1tFd6qmSSjLadoI+C+0E9CoGuI X-Received: by 10.195.11.34 with SMTP id ef2mr1937245wjd.123.1404564130928; Sat, 05 Jul 2014 05:42:10 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id h13sm75563079wjs.2.2014.07.05.05.42.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:42:10 -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 , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: pvr2fb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:43:27 +0200 Message-Id: <1404564207-21282-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/pvr2fb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 167cfff..da06b16 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -1075,7 +1075,6 @@ static struct pvr2_board { static int __init pvr2fb_init(void) { int i, ret = -ENODEV; - int size; #ifndef MODULE char *option = NULL; @@ -1084,7 +1083,6 @@ static int __init pvr2fb_init(void) return -ENODEV; pvr2fb_setup(option); #endif - size = sizeof(struct fb_info) + sizeof(struct pvr2fb_par) + 16 * sizeof(u32); fb_info = framebuffer_alloc(sizeof(struct pvr2fb_par), NULL);