Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754001AbdHWMUO (ORCPT ); Wed, 23 Aug 2017 08:20:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35293 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753910AbdHWMUM (ORCPT ); Wed, 23 Aug 2017 08:20:12 -0400 From: Peng Donglin To: heiko@sntech.de Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Peng Donglin Subject: [PATCH v2 05/10] ASoC: rockchip: Remove unnecessary function call Date: Wed, 23 Aug 2017 05:20:06 -0700 Message-Id: <3ec36b8e2a98a6080bdbbc800aa190000acae104.1503484313.git.dolinux.peng@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 29 The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/rockchip/rk3288_hdmi_analog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index dbc53e48c52c..cf5bbd8b6ebc 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -266,13 +266,9 @@ static int snd_rk_mc_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret == -EPROBE_DEFER) return -EPROBE_DEFER; - if (ret) { + if (ret) dev_err(&pdev->dev, "Soc register card failed %d\n", ret); - return ret; - } - - platform_set_drvdata(pdev, card); return ret; } -- 2.14.1