From patchwork Tue Oct 21 10:58:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5124621 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@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 BDDFBC11AC for ; Tue, 21 Oct 2014 12:23:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5BFD20145 for ; Tue, 21 Oct 2014 12:23:54 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7DBAE20123 for ; Tue, 21 Oct 2014 12:23:53 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A0D5C2667D3; Tue, 21 Oct 2014 14:23:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 67D652615BF; Tue, 21 Oct 2014 13:45:32 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 60942265749; Tue, 21 Oct 2014 13:45:31 +0200 (CEST) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by alsa0.perex.cz (Postfix) with ESMTP id EB6F92666A2 for ; Tue, 21 Oct 2014 12:58:57 +0200 (CEST) Received: by mail-pd0-f177.google.com with SMTP id v10so1110032pde.22 for ; Tue, 21 Oct 2014 03:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=T8j/F7eu0l/yf8xFKpZ8Llm/kpsdo8Qg2Gj+LJtNE9Y=; b=Gd0/NomH6v5jOANnO0rwcekeE4M2qJT78KMVXkf8Tb9K3JSrkDBd+wgwUVtagLa9Js +bENrUpdIxmjjbrTvuaxhWONh8/rujMVjDWKzqoCEpyMp1SdL2SqEC5quqBccOqt4Xkr YztJrau2r36bZblQDyYgDwdxo0NLlFGsnFIVRlzo/A2bLj3xuJv7WECLBkScaVA0zFX+ 1Ovgd+8wKRDoLHdqCGLO8GVm2bGNRyxOhaAsqnJ5tPVdeOJrmGELQ0iuvqoj6T1FisXk aI9t9A6RrRw3nyWkd21FXeLAvDAiCUUUwmxK+PUvjKhGuu6bCH20aYtEIKXpEnKs8pRk DZaA== X-Received: by 10.70.22.195 with SMTP id g3mr33552340pdf.37.1413889136643; Tue, 21 Oct 2014 03:58:56 -0700 (PDT) Received: from localhost.localdomain ([122.169.137.129]) by mx.google.com with ESMTPSA id nk11sm11632081pdb.40.2014.10.21.03.58.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 03:58:56 -0700 (PDT) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai Date: Tue, 21 Oct 2014 16:28:47 +0530 Message-Id: <1413889127-18754-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ALSA: ctxfi: remove unused variable X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP As of now the pointer to struct dai is not being used anywhere in the function. So it is safe to remove the variable. If we are ever doing anything with the container_of(daio, struct dai, daio), then at that time we can again add the variable. Signed-off-by: Sudip Mukherjee --- sound/pci/ctxfi/ctatc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index 4546590..632e843 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c @@ -1145,7 +1145,6 @@ static int atc_release_resources(struct ct_atc *atc) int i; struct daio_mgr *daio_mgr = NULL; struct dao *dao = NULL; - struct dai *dai = NULL; struct daio *daio = NULL; struct sum_mgr *sum_mgr = NULL; struct src_mgr *src_mgr = NULL; @@ -1172,9 +1171,6 @@ static int atc_release_resources(struct ct_atc *atc) dao = container_of(daio, struct dao, daio); dao->ops->clear_left_input(dao); dao->ops->clear_right_input(dao); - } else { - dai = container_of(daio, struct dai, daio); - /* some thing to do for dai ... */ } daio_mgr->put_daio(daio_mgr, daio); }