From patchwork Sat Jul 5 12:52:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488301 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 BD037BEEAA for ; Sat, 5 Jul 2014 12:51:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD03E202BE for ; Sat, 5 Jul 2014 12:51:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16C7920265 for ; Sat, 5 Jul 2014 12:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755437AbaGEMvG (ORCPT ); Sat, 5 Jul 2014 08:51:06 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:59007 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755107AbaGEMvF (ORCPT ); Sat, 5 Jul 2014 08:51:05 -0400 Received: by mail-wg0-f48.google.com with SMTP id m15so1519720wgh.7 for ; Sat, 05 Jul 2014 05:51:03 -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=1z1Hkn2Ph89gReqtfeB2yn4PoEbDgS4bdVD47c9EzfE=; b=fO2r3fdhCX2UvCZC/mJQTfQj+G6woAnfdeldoqj7tzeJcMwztStuNm5AO63eyhr9Eq B41zeAnT+oO7CqReMbz0TbgX/9Y8Qb40wBSYBJ2DGTSqskCyIdDJzJIIJW0kakG2Z4uW 3rqi6EEjwRhMiLw54hqBk6Rnwfyx/CO19UQLRBQ/DGIefJ1w5ZzlOmNbQahR+eqdc1eg upx+cVchBMZezugaAg2yll9lCR/e0kf1qXhpfZcNcW+/SIumi/5c816Bt5MMDtOZC52v BnsvD/t5BfM3Zq4WkkHmQkLCynT0wWw3ivl/0XsthtUeqJXHlm13tj9wtxmKYdDqgGlP ECzA== X-Gm-Message-State: ALoCoQmnMQRaNbdlWyK4juXUUH+4lGNoBw7V/XAcPXF2Ncouq1bcsAaJ2BP+NVatNBizhIm7XT4t X-Received: by 10.194.87.134 with SMTP id ay6mr18223590wjb.84.1404564663735; Sat, 05 Jul 2014 05:51:03 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id o12sm90838178wiw.5.2014.07.05.05.51.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:51:02 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Geert Uytterhoeven , Jingoo Han , Daniel Vetter , Joe Perches , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: valkyriefb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:52:20 +0200 Message-Id: <1404564740-22066-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 Acked-by: Geert Uytterhoeven --- drivers/video/fbdev/valkyriefb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index 97cb9bd..af708fe 100644 --- a/drivers/video/fbdev/valkyriefb.c +++ b/drivers/video/fbdev/valkyriefb.c @@ -416,18 +416,18 @@ static int read_valkyrie_sense(struct fb_info_valkyrie *p) out_8(&p->valkyrie_regs->msense.r, 0); /* release all lines */ __delay(20000); - sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; + sense = ((in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; /* drive each sense line low in turn and collect the other 2 */ out_8(&p->valkyrie_regs->msense.r, 4); /* drive A low */ __delay(20000); - sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); + sense |= ((in_8(&p->valkyrie_regs->msense.r)) & 0x30); out_8(&p->valkyrie_regs->msense.r, 2); /* drive B low */ __delay(20000); sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; sense |= (in & 0x10) >> 2; out_8(&p->valkyrie_regs->msense.r, 1); /* drive C low */ __delay(20000); - sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; + sense |= ((in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; out_8(&p->valkyrie_regs->msense.r, 7);