From patchwork Sat Jul 5 12:28:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487851 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 EF7939F358 for ; Sat, 5 Jul 2014 12:27:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A1F32039D for ; Sat, 5 Jul 2014 12:27:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CE39202A1 for ; Sat, 5 Jul 2014 12:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755250AbaGEM1o (ORCPT ); Sat, 5 Jul 2014 08:27:44 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:64671 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754840AbaGEM1n (ORCPT ); Sat, 5 Jul 2014 08:27:43 -0400 Received: by mail-wg0-f49.google.com with SMTP id y10so2548650wgg.20 for ; Sat, 05 Jul 2014 05:27:42 -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=vX+oCTyo/Gtep/XZBed2837ZvGhXecEkrSY2uVsJHUo=; b=QF3pRtkE4eNUi3s9QSE2ZmYOY7G+lHWj6Gx6eYjTecswTZ8fqwjILM0SshAdO6+k59 81EA8jqcOZqFIhmiFza0eV19XJUlg8ceWxJ7C/N23rl94KUwms43qsox5WDcxJPAK0By jpQ25yPtZz8lI29XQG1po9ijQO4FTW54op0mZayOUsL57Osm+PhKzuB4K/biap/flqCy h1W0Ivqiq7FSF+njD8s1eGqH/yLy8RmOVxUAMMBD58hVg2wsYqtiQ8DJnOIKxavplfSk Qyqo8NEfFCK0aCJcsjRth8hQF0HFZu9rE/nBVNE6FWzcSZJc4CMDWGqAGiXJBxlweUqq orGQ== X-Gm-Message-State: ALoCoQm/atJUKBTgU3jVhLZxwqdJeDQkvopDbs29/7qPZ9CrKu4/2ANSPsSg+2EIzyNdn/EViDiv X-Received: by 10.194.58.180 with SMTP id s20mr2087694wjq.119.1404563262408; Sat, 05 Jul 2014 05:27:42 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id da9sm90656095wib.5.2014.07.05.05.27.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:27:41 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , Daniel Vetter , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: mb862xx: mb862xxfb_accel.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:28:59 +0200 Message-Id: <1404563339-20105-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/mb862xxfb_accel.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c b/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c index fe92eed..aa778ba 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c @@ -28,7 +28,6 @@ static void mb862xxfb_write_fifo(u32 count, u32 *data, struct fb_info *info) { - struct mb862xxfb_par *par = info->par; static u32 free; u32 total = 0; @@ -188,7 +187,6 @@ static void mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, static void mb86290fb_imageblit(struct fb_info *info, const struct fb_image *image) { - int mdr; u32 *cmd = NULL; void (*cmdfn) (u32 *, u16, u16, u16, u16, u16, u32, u32, const struct fb_image *, struct fb_info *) = NULL; @@ -200,7 +198,6 @@ static void mb86290fb_imageblit(struct fb_info *info, u16 dx = image->dx, dy = image->dy; int x2, y2, vxres, vyres; - mdr = (GDC_ROP_COPY << 9); x2 = image->dx + image->width; y2 = image->dy + image->height; vxres = info->var.xres_virtual; @@ -309,8 +306,6 @@ static void mb86290fb_fillrect(struct fb_info *info, void mb862xxfb_init_accel(struct fb_info *info, int xres) { - struct mb862xxfb_par *par = info->par; - if (info->var.bits_per_pixel == 32) { info->fbops->fb_fillrect = cfb_fillrect; info->fbops->fb_copyarea = cfb_copyarea;