From patchwork Sun Jul 6 18:39:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491021 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 E60DDBEEAA for ; Sun, 6 Jul 2014 18:38:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F6FD2024C for ; Sun, 6 Jul 2014 18:38:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DA8C6202EC for ; Sun, 6 Jul 2014 18:38:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbaGFSiI (ORCPT ); Sun, 6 Jul 2014 14:38:08 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:50550 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbaGFSiH (ORCPT ); Sun, 6 Jul 2014 14:38:07 -0400 Received: by mail-we0-f178.google.com with SMTP id x48so3473343wes.9 for ; Sun, 06 Jul 2014 11:38:05 -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=YzBELZXEzCGekmy3VlK2FYVcD9G3CL8MKTPT18xSNRc=; b=Zy4EgFCAS870uplK0hawuiW2Byb6md3CTZp576U+FBFB1B8xuaPpM/qXTlIwMKMYjH X3M4au0JSXmkEaI+1N+KjGAOaiuv9WxNOPw0EWnGo61Z6M5jqKzOcHt/NGLnp480Fy8w CnioJB/u7/sNui94HNM9xuRGUEHylMMxeT60ZFj7Tlg+e11B9RxAHhyuH7I3BteEflPJ 8iiZi/9sFlgjja3PRKFYYFiNg6SlPGplxnj6GobktGLeIgLm6W15k2DMf/fuq7FjFd+T esWlhCjjXp0A+01b3e0ysOB/LZ+VytXvhuBCmY5+fMdgdesgUl5iBzZ4hEflekR1yvWo fE0Q== X-Gm-Message-State: ALoCoQn6TvwQ18sZl1wgmfIrPT9rvHbOHh0Q6BvdIyMTjN+w7LQGx9om7mg9m1g5F+HF2/78qZ2c X-Received: by 10.194.62.140 with SMTP id y12mr27227259wjr.27.1404671885723; Sun, 06 Jul 2014 11:38:05 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id u10sm84067923wjz.43.2014.07.06.11.38.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:38:05 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , 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: Sun, 6 Jul 2014 20:39:22 +0200 Message-Id: <1404671962-18806-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/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;