From patchwork Sun Jul 6 18:54:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491391 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 F0CEBBEEAA for ; Sun, 6 Jul 2014 18:53:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40F6920253 for ; Sun, 6 Jul 2014 18:53:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 694552024C for ; Sun, 6 Jul 2014 18:53:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbaGFSww (ORCPT ); Sun, 6 Jul 2014 14:52:52 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:57461 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbaGFSwv (ORCPT ); Sun, 6 Jul 2014 14:52:51 -0400 Received: by mail-wg0-f43.google.com with SMTP id b13so3397767wgh.26 for ; Sun, 06 Jul 2014 11:52:50 -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=VfrdYw2dMadkhD1flDpmNWEZiw10dnx5dQcO+JOJd4w=; b=YvK2KkdXIo4fC6e1JAWwGDzaJYQK3l4UZtd4Y32EvCjwEpSyxR55a+oeB69z2Oq0PD jlS+B1kwkZjk9/PEyh1rakc2nnO9G6LDPnU5jwZs6dkCCTfuk65x+he5mJmxm3GN5NWb B2n/U2axzci2ivy90/xwe3U4le7IHFcjdVTy4sX9aUbmzN6NXk0q5Dyns8wC8/S1kFBP VRyARpRXF1+X2rJB5iKguMFoOoOhpL6QxZLGmq+fI5GeCTqFp+q6fHzFXwXsIDENgvLd iu3NqrDDS4NSFFwxERizBczfY3DAitgUoO+EjGmmNeRR3pDd71LK92Z9RopRrle2BXPs /rcg== X-Gm-Message-State: ALoCoQl0mWKFWYe0xqgyNrflz4r4jCXOmYAcnzDLDcSOz7SJTKj1Eyy9BUSxlmMWWjr/IoygwoVL X-Received: by 10.194.158.164 with SMTP id wv4mr1072947wjb.124.1404672770234; Sun, 06 Jul 2014 11:52:50 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id fb15sm105874682wid.23.2014.07.06.11.52.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:52:49 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: pvr2fb.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:54:06 +0200 Message-Id: <1404672846-19986-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/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);