From patchwork Sat Jul 5 12:32:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4487921 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 61EAA9F358 for ; Sat, 5 Jul 2014 12:31:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A13AB202A1 for ; Sat, 5 Jul 2014 12:31:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C44EA20219 for ; Sat, 5 Jul 2014 12:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754975AbaGEMbh (ORCPT ); Sat, 5 Jul 2014 08:31:37 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:59547 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbaGEMbg (ORCPT ); Sat, 5 Jul 2014 08:31:36 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so2579856wes.31 for ; Sat, 05 Jul 2014 05:31:35 -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=KwVOpIyawFvmwj62MZAp73jrDL6QneQg6q5HQOX6kvA=; b=SA3eRLRpjRQRzFgmwHfZyQkBTvZyUrN4rlCNPeZ5XbrBEf374qrFVrVmmnDgD9rX3p UdgBnMVYc2ZEkxhRcWR5ZS7id/p64EPzo7I5VUZ3NGESwCBrPqRfIZ7BSPFWNLHoLzLs wiI9FJXPUz/wx9TaPMu5zrvb+/0W1gHTSKalbpZGRGGI7R0eOvzHniiwdl0ciCQ/8iUB g/YmdKSqCob0m24PEAcpuRywQ2inruMb0yHFakA++k/3egtAVuQNeSaLVv3+A4OS9ZbX 4PHiclP55o7naxWOyPNuHrlQa1H8TSkkQm1waCpfss+Vb8ZE5kWoAJoRa2nz1mkuQzNa zWYA== X-Gm-Message-State: ALoCoQm+0nTpqPFZScTdD9pnhGdog0QZRd8t6XE538hh4ZsMf7R8UCGO38mQScssQgfKVJ+qMdgD X-Received: by 10.195.17.164 with SMTP id gf4mr18653170wjd.45.1404563495535; Sat, 05 Jul 2014 05:31:35 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id wv8sm75512135wjb.1.2014.07.05.05.31.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:31:34 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Denis Carikli , Daniel Vetter , Sascha Hauer , Alexander Stein , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: mx3fb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:32:52 +0200 Message-Id: <1404563572-20440-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/mx3fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/mx3fb.c b/drivers/video/fbdev/mx3fb.c index c645a0a..ac38cb1 100644 --- a/drivers/video/fbdev/mx3fb.c +++ b/drivers/video/fbdev/mx3fb.c @@ -449,7 +449,6 @@ static void sdc_enable_channel(struct mx3fb_info *mx3_fbi) static void sdc_disable_channel(struct mx3fb_info *mx3_fbi) { struct mx3fb_data *mx3fb = mx3_fbi->mx3fb; - uint32_t enabled; unsigned long flags; if (mx3_fbi->txd == NULL) @@ -457,7 +456,7 @@ static void sdc_disable_channel(struct mx3fb_info *mx3_fbi) spin_lock_irqsave(&mx3fb->lock, flags); - enabled = sdc_fb_uninit(mx3_fbi); + sdc_fb_uninit(mx3_fbi); spin_unlock_irqrestore(&mx3fb->lock, flags);