From patchwork Mon Aug 7 13:18:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9888399 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 769D9601EB for ; Tue, 8 Aug 2017 14:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68A9F28942 for ; Tue, 8 Aug 2017 14:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DA0728935; Tue, 8 Aug 2017 14:22:22 +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 93C362892A for ; Tue, 8 Aug 2017 14:22:21 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B6E24266884; Tue, 8 Aug 2017 16:22:19 +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 2975D2672AA; Mon, 7 Aug 2017 15:18:14 +0200 (CEST) Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by alsa0.perex.cz (Postfix) with ESMTP id 0F9DD26721A for ; Mon, 7 Aug 2017 15:18:11 +0200 (CEST) Received: by mail-qt0-f193.google.com with SMTP id t37so401509qtg.2 for ; Mon, 07 Aug 2017 06:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S+YrgSo9DUPqAtkTPE11JrL9ScGnsOcRMplH+jHd96E=; b=kEuaRHDDH688TMdk90TeYNpGgSg352LDEfefjAO9A7xVNpa0mn3iHZmRuZNkOMCkWU YeRWbpPQ4DhNRBkfzy+U5MChD+0kccCKuSPxhjWvJjcxocL1St1+VVQU4CXF2EtyINYp FRK/ZVxnpa93f44IHNd/uk+UM2+OHcMoAL0GSzTEN3s5zqhwbREUbvJ3b9IId823XhPH puWWa6NndtJ5jCv89tgKTQaL5uViNhANB4ZEbkpQeIGQZMxIbdLdS8rxRqDVaH5q9cJL vCnwoSIsHfVglHEatgU6gZbTYarSlMI0C7jg9NX/m49U5JfcJGk1Rxgv62pRxWVTdBD9 0tig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=S+YrgSo9DUPqAtkTPE11JrL9ScGnsOcRMplH+jHd96E=; b=L4b2Q4I2kDi/6zzZmhyjenLsjz3UaaLAasJgdH2I0rsJf/yzMckCj2ih7YpYSjlWge SFrIvMizaQzvn5rRokFP1S41jcK3xvbi8gDKGgBWAqXL519Bq6hgErLZ0ep0yvugREZp UMoFbv/2s/RCQK1+ujwgQYkqa9RGGn5vIBbcItJ3btSRYUhe7bMVRR2NkXQ84/dTVh76 jjPs4f9BJBZzfC183xCoM8wPp3XSNfWmZkEHq/g+X426DDZYRF3aQwMIkgzWxwcTVcUW YUtlsh0atDQWF5ACZ3opXYiF01pWinFQ99Rn05Q1PTD/01+f1o4MId++fHDg6pT4+HMP +hcw== X-Gm-Message-State: AHYfb5j5Ts3U6V3sexX2hlBaxKizkGy/v+d8Mjw7dqnqD/btx2FxXwex Mg3lDideo3Zn4Y85tDapVGs9n6ix6g== X-Received: by 10.200.55.147 with SMTP id d19mr697496qtc.94.1502111890735; Mon, 07 Aug 2017 06:18:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.210.186 with HTTP; Mon, 7 Aug 2017 06:18:09 -0700 (PDT) In-Reply-To: <1502111504-7996-1-git-send-email-pengdonglin137@163.com> References: <1502111504-7996-1-git-send-email-pengdonglin137@163.com> From: Donglin Peng Date: Mon, 7 Aug 2017 21:18:09 +0800 Message-ID: To: broonie@kernel.org X-Mailman-Approved-At: Tue, 08 Aug 2017 16:22:18 +0200 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: compress: Remove duplicated code 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The value of the variable new_name is assigned repeatedly. Signed-off-by: Peng Donglin --- sound/soc/soc-compress.c | 3 --- 1 file changed, 3 deletions(-) if (codec_dai->driver->capture.channels_min) -- 1.9.1 diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index 206f36b..2c16f42 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -737,9 +737,6 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) } /* check client and interface hw capabilities */ - snprintf(new_name, sizeof(new_name), "%s %s-%d", - rtd->dai_link->stream_name, codec_dai->name, num); - if (codec_dai->driver->playback.channels_min) playback = 1;