From patchwork Sun Jul 6 18:43:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491151 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 147AB9F26C for ; Sun, 6 Jul 2014 18:42:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 400AB20253 for ; Sun, 6 Jul 2014 18:42:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 723AB2024C for ; Sun, 6 Jul 2014 18:42:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbaGFSmP (ORCPT ); Sun, 6 Jul 2014 14:42:15 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:56801 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbaGFSmP (ORCPT ); Sun, 6 Jul 2014 14:42:15 -0400 Received: by mail-wg0-f44.google.com with SMTP id k14so3392517wgh.3 for ; Sun, 06 Jul 2014 11:42:13 -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=ZKuB77FjbwreMSTJHC17de9JwWjX8jq8/d4tf7MZLT0=; b=NYLfKHeCiMKIwGXVq00H7euIFai9XZOUN2eNi60/I9zg0hDZD23PXpEww0QBKHUwwc NFY5ow9WLLdfVIkQ1T+chSVPXPU9qFrlXTLNwTA+5HaeTJtvwI8AcvJ02unV6LLJEOXe mfd2oj4xVki1c0qTmdX9F6B2/UWEW09/UBCU89tlu7B/TN3w4vLAYXy7JB21vOHIwpuL t2tGW8eiPcueFdwizMGyKsliOy1ZFNV4oynI8me09e+YFhmxT8A2wcYniIIXNFpGGygf Gv2nZxgXbfOw1fGnLZtrKyGKCaQHegtl9PeMV7l4ECsgQbtxe71izuoLor0jZ3zZyXEV 6AyQ== X-Gm-Message-State: ALoCoQlnfgemElBn2xDMAj3ydHtQIY7vT37nAldB1oODVbCoh+h/g+8sV7IS6Pk2m7GX3jPnqVON X-Received: by 10.180.73.230 with SMTP id o6mr31264973wiv.30.1404672133899; Sun, 06 Jul 2014 11:42:13 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id nf11sm71958798wic.9.2014.07.06.11.42.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:42:12 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Denis Carikli , Daniel Vetter , Sascha Hauer , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: mx3fb.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 20:43:30 +0200 Message-Id: <1404672210-19147-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/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);