From patchwork Sat Jul 5 12:29:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487861 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 4D35E9F358 for ; Sat, 5 Jul 2014 12:28:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 714472039D for ; Sat, 5 Jul 2014 12:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A147920357 for ; Sat, 5 Jul 2014 12:28:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754840AbaGEM2n (ORCPT ); Sat, 5 Jul 2014 08:28:43 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:51191 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433AbaGEM2m (ORCPT ); Sat, 5 Jul 2014 08:28:42 -0400 Received: by mail-wg0-f44.google.com with SMTP id k14so2507166wgh.3 for ; Sat, 05 Jul 2014 05:28:41 -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=QHpy4IrZXwqZXID1qYsdOzXVzdIoGl8VaPPwP53JjbE=; b=UpvK/xa6sm+SLKbg+3xYAdK6DPoL35/nu/jV9kpoK0m2vrsu1+9NFGZE+c2TC5fLRx L6lxg5NKQRsKX8Is0zqYYMu0HUn2EcAwpupZqp33Pgj/7+YqFMO7qPGaYkSfYjq2LTJt 3814Z2fApgv57cgy0okGqmGPt/dLLigsiCLTrhUJ8Bq149ekJY1c8Y/IHq+LE2knBzC4 RnJUU77XJMdiixkLyjDifxDkI1r28MOvm3mx7XJc0o2JSEuZqP3KnxrY8j0MecahWng6 sIRkqn0R6SwMT36DWTLH0Q/sH4uXsq0hJ2d8oHdc2IGleefi/BaWzUExoatfYS3M6nBh ANig== X-Gm-Message-State: ALoCoQmXWyFVoh5fpX+mjglsNMK4RYKuGuh1l3xAQqZ3uAAWne3t6tfPCz4HPYvjVbSx8LwkUZdN X-Received: by 10.180.13.139 with SMTP id h11mr63912290wic.40.1404563320998; Sat, 05 Jul 2014 05:28:40 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id by3sm56193350wjc.10.2014.07.05.05.28.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:28:40 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Grant Likely , Rob Herring , Jingoo Han , Daniel Vetter , Anatolij Gustschin , Laurent Pinchart , Sachin Kamat , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] video: fbdev: mb862xx: mb862xxfbdrv.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:29:57 +0200 Message-Id: <1404563397-20188-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/mb862xx/mb862xxfbdrv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c index 0cd4c33..24be945 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c @@ -273,7 +273,6 @@ static int mb862xxfb_set_par(struct fb_info *fbi) static int mb862xxfb_pan(struct fb_var_screeninfo *var, struct fb_info *info) { - struct mb862xxfb_par *par = info->par; unsigned long reg; reg = pack(var->yoffset, var->xoffset); @@ -286,7 +285,6 @@ static int mb862xxfb_pan(struct fb_var_screeninfo *var, static int mb862xxfb_blank(int mode, struct fb_info *fbi) { - struct mb862xxfb_par *par = fbi->par; unsigned long reg; dev_dbg(fbi->dev, "blank mode=%d\n", mode); @@ -548,7 +546,6 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev, struct device_attribute *attr, char *buf) { struct fb_info *fbi = dev_get_drvdata(dev); - struct mb862xxfb_par *par = fbi->par; char *ptr = buf; unsigned int reg;