From patchwork Sat Jul 29 14:40:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9870027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9866060353 for ; Sat, 29 Jul 2017 14:41:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DEFD287AE for ; Sat, 29 Jul 2017 14:41:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 723F6287F2; Sat, 29 Jul 2017 14:41:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 900FD287AE for ; Sat, 29 Jul 2017 14:41:28 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7ADF7266E2D; Sat, 29 Jul 2017 16:41:26 +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 A8D8F266E3C; Sat, 29 Jul 2017 16:41:25 +0200 (CEST) Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by alsa0.perex.cz (Postfix) with ESMTP id BC191266E15 for ; Sat, 29 Jul 2017 16:41:23 +0200 (CEST) Received: by mail-qt0-f194.google.com with SMTP id d10so13746512qtb.4 for ; Sat, 29 Jul 2017 07:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ztksx83x8pns5yMjEme4iuebS6pF+r6NKwEoQLw0skE=; b=RgRBegHS/Dcpiriib+3Sc2FA/EEFQTIoNkxIfiNmwI4rC41YqAw0r05bJqT+BD5wcl wIfK5WA5Fj0VbI97hPuSfEmCjmjeTu7xZ4Xky4XGyOpyEaxCR8WcL3gxELaKIpDwYPc8 jR8w+BQTQ0f+BCus/T3Gn9DMiH3Ge2hjPDPw+znatkLH6WhU/d1qfn6W597q5OKiNv+d dUr5ADUrEJe8282t/rvhCGglqg474a7Jk82rEqA9Khv3IH79wesM2J1azf57/tiA/5UE RfZrpQ/aYuyCrl/Wknr2pRlfJEOtY2dpOBhjTpVo0T89zdIeTo6/7Mpw2LMhGaCIY6Bv Pcfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ztksx83x8pns5yMjEme4iuebS6pF+r6NKwEoQLw0skE=; b=qxyxy0+sLdc5JLrxsyoZQwfraXwINEPaiugWpiAtEl+UrP2cY5xiSQxRukjnxbE9Jj tVZj4kj2GB7WfbtlXZTUlea9ubvNxawnuF7dDSmiZophtu1+dRG871CJpKV45pESp9oR Gd81mG5wCCnSmeDNm2CNuYBiEnV6qNObviHq87bkhO10oeI6+4uYA7a8cD5zGYIrMHLW MRcpVs4QAnvhH+GW+nJ27XD7Z9YUHEGTIH3nhr4pducawqrwRyNCUp0cyXwSNWPS6YWP Pid/JQZAzLD5BdIHOb3BtaMe2hytNuiiSadRVrQPJVjD+zO2TFmE0XIIupgO9rDn/8+b HWAw== X-Gm-Message-State: AIVw110Fx8Oeb3HD8hSFJ1qQrH1xbt9sEagJ1pOD/DVKG/dUeOoq2hPN ZszhgQM4wtmEJg== X-Received: by 10.200.49.141 with SMTP id h13mr10682451qte.198.1501339282592; Sat, 29 Jul 2017 07:41:22 -0700 (PDT) Received: from localhost.localdomain ([187.180.181.44]) by smtp.gmail.com with ESMTPSA id o39sm18825646qko.11.2017.07.29.07.41.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Jul 2017 07:41:22 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Sat, 29 Jul 2017 11:40:55 -0300 Message-Id: <1501339255-29094-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Fabio Estevam , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: soc-pcm: Remove unused 'debugfs_dpcm_state' entry 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 From: Fabio Estevam 'debugfs_dpcm_state' member from structure snd_soc_pcm_runtime is never used at all, so it is safe to remove it. Signed-off-by: Fabio Estevam --- include/sound/soc.h | 1 - sound/soc/soc-pcm.c | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 8f9376f..9d6e1db 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1233,7 +1233,6 @@ struct snd_soc_pcm_runtime { struct delayed_work delayed_work; #ifdef CONFIG_DEBUG_FS struct dentry *debugfs_dpcm_root; - struct dentry *debugfs_dpcm_state; #endif unsigned int num; /* 0-based and monotonic increasing */ diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 7d3859e..24148de 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -3000,8 +3000,7 @@ void soc_dpcm_debugfs_add(struct snd_soc_pcm_runtime *rtd) return; } - rtd->debugfs_dpcm_state = debugfs_create_file("state", 0444, - rtd->debugfs_dpcm_root, - rtd, &dpcm_state_fops); + debugfs_create_file("state", 0444, rtd->debugfs_dpcm_root, + rtd, &dpcm_state_fops); } #endif