From patchwork Sun Aug 20 05:23:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9910933 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 95111603FA for ; Sun, 20 Aug 2017 05:31:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 851162891C for ; Sun, 20 Aug 2017 05:31:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79F062873F; Sun, 20 Aug 2017 05:31:26 +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 BCECE28785 for ; Sun, 20 Aug 2017 05:31:25 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1BF0D267390; Sun, 20 Aug 2017 07:23:31 +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 F2B45267390; Sun, 20 Aug 2017 07:23:29 +0200 (CEST) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id 6C7FD26739B for ; Sun, 20 Aug 2017 07:23:25 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id w127so16249pfd.1 for ; Sat, 19 Aug 2017 22:23:24 -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=iYGge/yjUyvsKYUZ7/Vrz53Nt5JrIi2HA2P652nC/4I=; b=gGI7vmaNOVRbHUHgIPU5+HLlgkPXrw1sl8AL9kHDruALy2ubQPsEXT7fb6DENEDaPI zwCRKLHCwIG/6DjcwEtjSsuT94BLy73IYqAmVw4Y9C//+xXe8Uwv4vLyBxvmQEimeYcU Lk6/N30mRorGwWG64Qk8uKRl/3dHkJtJPFhTP1+wrKLDjlbyqltk86pXMnflATu5Vl3T pVZLkXGzP9k+lyRLXEeUNga2ovi40XXPcMdkSt3byGd8dQAjJbBw90ryQmUAQ4XKnQyv W80wok1oXX/qBggh97u/rQxy2y5NNe/hx534GBDhkGZ76REYyzRajJrNZjqncgbnJwq2 Mp+Q== 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=iYGge/yjUyvsKYUZ7/Vrz53Nt5JrIi2HA2P652nC/4I=; b=CZE+MtAdTjojgSQ62kpQXgIJYTuNOJ53RUDX7TVuy5rnD6PlIVT7V95PGfuzD2jB1v mcNrqYmwm42995S+k4mInJL5sQe4IPGrLFc1kYJlR132lDd/xP2YdzgODDMB3OoahNuk OEm719Q9bo5D3rI9+KHh8NvRmL1jvGXHVhCKPQ/5H1XCAa5lAuGgEIlc3TcOYnzPNgd0 FODlDz+DzhK3EkhVvdhw/NA1zkuM1lGQlfOEqyARbfeuqfiL3aT0bo5h7ETfRm96wD9t Uyc3o00pRIZsfn0d5QIWV34FIxkf1Gqz7CZxpK+EaYGozUv+ReDyOx8k/NmdscZ0A8ui 1esA== X-Gm-Message-State: AHYfb5h5hhPjcw7aC4qNh3A5Cif3I9+Zx3ze5g45cHFA4D7ydv21uQlX BTYpvmjezpP+LQ== X-Received: by 10.84.224.136 with SMTP id s8mr14703619plj.429.1503206604233; Sat, 19 Aug 2017 22:23:24 -0700 (PDT) Received: from localhost ([222.131.239.182]) by smtp.gmail.com with ESMTPSA id t18sm6035888pfj.9.2017.08.19.22.23.23 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 22:23:23 -0700 (PDT) From: Peng Donglin To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, nicolas.ferre@microchip.com Date: Sun, 20 Aug 2017 13:23:19 +0800 Message-Id: <1503206599-15212-1-git-send-email-dolinux.peng@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Peng Donglin Subject: [alsa-devel] [PATCH 04/12] ASoC: atmel: Remove unnecessary function call 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 The function platform_set_drvdata copies the value the variable card to card->dev->driver_data, then the address of &pdev->dev is assigned to card->dev in atmel_classd_asoc_card_init, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will do the same copy operation, so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin --- sound/soc/atmel/atmel-classd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index b7ef8c5..0cd7caa 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -652,7 +652,6 @@ static int atmel_classd_probe(struct platform_device *pdev) } snd_soc_card_set_drvdata(card, dd); - platform_set_drvdata(pdev, card); ret = atmel_classd_asoc_card_init(dev, card); if (ret) {