From patchwork Sat Jul 5 12:40:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488071 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 E2714BEEAA for ; Sat, 5 Jul 2014 12:39:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1676020357 for ; Sat, 5 Jul 2014 12:39:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 447172021F for ; Sat, 5 Jul 2014 12:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756450AbaGEMiw (ORCPT ); Sat, 5 Jul 2014 08:38:52 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:62751 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755613AbaGEMiw (ORCPT ); Sat, 5 Jul 2014 08:38:52 -0400 Received: by mail-we0-f181.google.com with SMTP id q59so2558714wes.40 for ; Sat, 05 Jul 2014 05:38:50 -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=oMwq4cZ0lRVnyHMVxUJrluLZMi6Kv1o2ZOx1Wy4Cstg=; b=lvMXWqZDhboIk0iYCCihpNUmSK8z2/WCr3z9ZIYGIGjJ2Wqf/Fw7RsgnA1qwXMGzvl G1sGqGqHVYdp7h/vJU5cz2cCREvFjIR8Pkew/G2NodmN26zapbBzwl2OPWMEBvkgTouD ksWTtMFkR9Bp8H6v9932wyi2xRJMccRCiNSa1J+Ra/q+K0GQoeywL6htmS+q94FdnbxU S3DWrqPiw1rat4VVn2PX5lTGwHMrypjQ+gKIJZmh4M07b9HSSRo8FN2Glp6pO+E4x3HV Y3xvSFjZiH8bvVyemxDW+fIyIF4pJFudMBWakQNgXnw/jZo+b3PSJftK6/gfGyl/8n/A vRlw== X-Gm-Message-State: ALoCoQnSB4Dsb83F3FDGw/Trtt3ErUBEYQBbh5NQXi1Hl3sEK3gDoaYm5eX62stHwLjXabPadbE5 X-Received: by 10.181.11.166 with SMTP id ej6mr61959305wid.75.1404563930791; Sat, 05 Jul 2014 05:38:50 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id au7sm18745786wjc.41.2014.07.05.05.38.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:38:49 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Archit Taneja , Ricardo Neri , Jingoo Han , Daniel Vetter , Mythri P K , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: omap2: dss: hdmi4_core.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:40:06 +0200 Message-Id: <1404564007-21024-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/omap2/dss/hdmi4_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi4_core.c b/drivers/video/fbdev/omap2/dss/hdmi4_core.c index 8bde7b7..0af76d2 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi4_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi4_core.c @@ -796,7 +796,7 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, struct hdmi_audio_format audio_format; struct hdmi_audio_dma audio_dma; struct hdmi_core_audio_config acore; - int err, n, cts, channel_count; + int n, cts, channel_count; unsigned int fs_nr; bool word_length_16b = false; @@ -858,7 +858,7 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, return -EINVAL; } - err = hdmi_compute_acr(pclk, fs_nr, &n, &cts); + hdmi_compute_acr(pclk, fs_nr, &n, &cts); /* Audio clock regeneration settings */ acore.n = n;