From patchwork Sun Jul 6 18:50: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: 4491321 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 0479A9F26C for ; Sun, 6 Jul 2014 18:49:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4181620253 for ; Sun, 6 Jul 2014 18:49:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 66A282024C for ; Sun, 6 Jul 2014 18:49:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbaGFStj (ORCPT ); Sun, 6 Jul 2014 14:49:39 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:64372 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915AbaGFStj (ORCPT ); Sun, 6 Jul 2014 14:49:39 -0400 Received: by mail-wi0-f177.google.com with SMTP id r20so5816027wiv.10 for ; Sun, 06 Jul 2014 11:49:38 -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=gAYQLP5OWYUuyZU5mza0hX8WDEl9Te94LxsdZKUK9xQ=; b=HSFSa76de5aYuhuelPm4Qz3rSyWkGpNNDVK814nMAVtofR7ZDMvlL/Xe1PeYAwYbjB 5t8PFJUAzapxTUm82xyASCoUV7WMYil5hv3KOHJz9nHhDQYemPOZ1OukEUpdlGOhj4nM 1cEEr5L1mrzTvLIkSMaVIME1CaxzEn6V4WaqfcHgZOdoj7MsGtkGUhGq4UctkNj3TLyt 4rAx9tBwP8UMXHqjz60jQtSdv+jE0RmbcO0UDdHf4IyaYsa5DBoyt+1DAmKCJU4y0o2f 6JlVFRtAjev46II3YmgmBIz7KLWp56nn1Zr/J8sgwB/OGSwIckLBTmFi0j7MSDkGmUaC a42A== X-Gm-Message-State: ALoCoQm5RmLGWwVEgKvGW26DTrf8wrIIyMMu6TZ4gdG3qDpCB+Re4+YIBdVNDjw1XCBGEi6+ofXb X-Received: by 10.194.57.132 with SMTP id i4mr25992095wjq.6.1404672578120; Sun, 06 Jul 2014 11:49:38 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id o12sm105881743wiw.5.2014.07.06.11.49.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 11:49:37 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: 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: Sun, 6 Jul 2014 20:50:54 +0200 Message-Id: <1404672654-19736-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/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;