Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755482AbaGEM2o (ORCPT ); Sat, 5 Jul 2014 08:28:44 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:56687 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbaGEM2m (ORCPT ); Sat, 5 Jul 2014 08:28:42 -0400 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/