From patchwork Sun Jul 6 18:40:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491031 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 0D9B59F26C for ; Sun, 6 Jul 2014 18:39:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44773202E6 for ; Sun, 6 Jul 2014 18:39:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6FF4320253 for ; Sun, 6 Jul 2014 18:39:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbaGFSjJ (ORCPT ); Sun, 6 Jul 2014 14:39:09 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:46083 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbaGFSjI (ORCPT ); Sun, 6 Jul 2014 14:39:08 -0400 Received: by mail-wi0-f170.google.com with SMTP id cc10so14059751wib.3 for ; Sun, 06 Jul 2014 11:39:07 -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=d/RWk/bSpCwCvqf6TwL8n5wJjfbKYVoY3vCxOWpbBn0=; b=MuzCCeGT/oetXB8Ctl+uKVUc1gaC9oDbjmbFuUCK7gGRoRQ/EETveCiMHfqn5M1svX /nbCQs/tL8x0IfQmxyuobqqIpYdV4kOHw87ufFIduahCaVZ4P/fAyj7SZpSQ35XPSdOo Aq3wFdNXmKLkbslXg9+rXpH5asXExQteSzZmmZgZqLmdbNaI8/kv+vljqL2P/Nysc7Uh pHVY2zofTITF0OdwWJn/fcIOJsh/TF8kbduGnKizkD/klUrVGs+LKse3FgvLZhT3tXJ1 0s0iriXsQ0yaw1TpjNaZT5bZKoxwSb5qAi5aRcdKNjrMWRpiTay+SPcX6FSFjQ/ocEjG q0ig== X-Gm-Message-State: ALoCoQlxjZuHVq/QTGzE3IinLFcUmKDNAdT+FnLgDqhitzGKpRqnLHKs2GvVizs4M3TJ1cqY0imM X-Received: by 10.194.174.66 with SMTP id bq2mr4679521wjc.96.1404671947745; Sun, 06 Jul 2014 11:39:07 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ed15sm101019620wic.9.2014.07.06.11.39.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:39:07 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Grant Likely , Rob Herring , Jingoo Han , Daniel Vetter , Anatolij Gustschin , 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: Sun, 6 Jul 2014 20:40:24 +0200 Message-Id: <1404672024-18891-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/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;