From patchwork Sat Jul 5 12:31:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487901 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 35ED39F358 for ; Sat, 5 Jul 2014 12:30:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59E3320357 for ; Sat, 5 Jul 2014 12:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81DFE202A1 for ; Sat, 5 Jul 2014 12:30:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755808AbaGEMaj (ORCPT ); Sat, 5 Jul 2014 08:30:39 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:62702 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754003AbaGEMai (ORCPT ); Sat, 5 Jul 2014 08:30:38 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so4751663wib.6 for ; Sat, 05 Jul 2014 05:30:37 -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=BQDTM5udvBVkXQ1DIhrDz1NnGgUdCWofLQnuMf08iIo=; b=Q0Uupt6hrQ7HJoapqE8azHih8sT2fzGy/Kh6sSdqXQjSQLCFFemUCcNHf/1Ik6xgYg rLK9RlCnWR7QP1XfjNg/hvvnksYi4jsKq7ZMP81nnkXN/LnQWWBrCyuvs1wcNfXxofEq rvPmWlbu2ls7bvCzZdVEvKdgZgZD9prgqGEDyOjeGSjM1ylrdcdunqxlZALF1x4AcmE5 PO9rEzYfBv4YUBga1M1QwglCDKpxfsBcn+ERxbuf+92KFnksYhfwP3vLRox7iOVvgZ3P WntdKOhKPxljH4t1bM7PvUTLVVG8pMjCkmISlBlA31WJRM2YQ1YMqOxLKgLe9d5XB9/d nd8A== X-Gm-Message-State: ALoCoQmOuB3Wp61dd0ijNdKB3kA1WFQPeLsWX9IDAJ5nHErLwAPX0aZOqCof4gtBsbhETJQSP2F/ X-Received: by 10.180.94.166 with SMTP id dd6mr23356896wib.33.1404563437387; Sat, 05 Jul 2014 05:30:37 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ec8sm71746851wic.10.2014.07.05.05.30.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:30:36 -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: msm: mddi.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:31:54 +0200 Message-Id: <1404563514-20355-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/msm/mddi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/msm/mddi.c b/drivers/video/fbdev/msm/mddi.c index e0f8011..d65ff75a 100644 --- a/drivers/video/fbdev/msm/mddi.c +++ b/drivers/video/fbdev/msm/mddi.c @@ -257,12 +257,12 @@ static irqreturn_t mddi_isr(int irq, void *data) struct msm_mddi_client_data *cdata = data; struct mddi_info *mddi = container_of(cdata, struct mddi_info, client_data); - uint32_t active, status; + uint32_t active; spin_lock(&mddi->int_lock); active = mddi_readl(INT); - status = mddi_readl(STAT); + mddi_readl(STAT); mddi_writel(active, INT); @@ -548,7 +548,6 @@ uint32_t mddi_remote_read(struct msm_mddi_client_data *cdata, uint32_t reg) struct mddi_llentry *ll; struct mddi_register_access *ra; struct reg_read_info ri; - unsigned s; int retry_count = 2; unsigned long irq_flags; @@ -572,7 +571,7 @@ uint32_t mddi_remote_read(struct msm_mddi_client_data *cdata, uint32_t reg) ll->next = 0; ll->reserved = 0; - s = mddi_readl(STAT); + mddi_readl(STAT); ri.reg = reg; ri.status = -1;