From patchwork Tue Jun 10 03:36:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4326541 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 104A69F390 for ; Tue, 10 Jun 2014 03:37:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3309A2018A for ; Tue, 10 Jun 2014 03:37:24 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 01A8B2013D for ; Tue, 10 Jun 2014 03:37:23 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0E10D26562E; Tue, 10 Jun 2014 05:37:22 +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.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id DD845265658; Tue, 10 Jun 2014 05:37:08 +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 C6F0E265666; Tue, 10 Jun 2014 05:37:07 +0200 (CEST) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by alsa0.perex.cz (Postfix) with ESMTP id 4BDC32656FE for ; Tue, 10 Jun 2014 05:36:47 +0200 (CEST) Received: by mail-pd0-f170.google.com with SMTP id g10so5643292pdj.1 for ; Mon, 09 Jun 2014 20:36:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=P6GxBasreiySvs6230LzmEhwVgqnqE3MXSGOVAT9wdU=; b=gdMxyRfw6Andiw3UbptaRyUeoaLQzvHcltz5rUOeCQYULO04l27F6ZJtpXgoAD2k1X HjNUMe9mh6bSIrD3sq8UeqPmo14bOsuQdbjoShy/5Jbk/YSkwsaOBjtbYyUlKKVL/wVv +G27ze2C2FDIyvcjrMtgMI4MJv+0b6CFXhNVq0KnbkHzWzX6O+DIEh10UCqM/U2Zne7z /xpyBb/2p34dEv4+pFSXJgfYGrYQ2ZnB531ldx8Y6hgHvNXq3VAeTGftMopU4j+s63JL vsIwNutIZGpUJuUVzYNxl5BdFbewJ4yii171ulxfZTvX4veRYFemUFYSbRvLVIx0H9b7 5GnA== X-Gm-Message-State: ALoCoQk6soFqw9tTl8Z/5X3E9uWbZWe93EREXBRBqrUKeZjwz01mLA7X7bjCMwTEbc5JJu7ku1+H X-Received: by 10.66.151.144 with SMTP id uq16mr2683759pab.68.1402371405832; Mon, 09 Jun 2014 20:36:45 -0700 (PDT) Received: from [192.168.1.112] (111-240-58-131.dynamic.hinet.net. [111.240.58.131]) by mx.google.com with ESMTPSA id ry10sm5925195pab.38.2014.06.09.20.36.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 09 Jun 2014 20:36:45 -0700 (PDT) Message-ID: <1402371401.16323.2.camel@phoenix> From: Axel Lin To: Mark Brown Date: Tue, 10 Jun 2014 11:36:41 +0800 In-Reply-To: <1402371356.16323.1.camel@phoenix> References: <1402371356.16323.1.camel@phoenix> X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Cc: Oder Chiou , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH 2/3] ASoC: rt5645: Remove unneeded goto in rt5645_i2c_probe 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 Signed-off-by: Axel Lin --- sound/soc/codecs/rt5645.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 02147be..a7762d0 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -2345,14 +2345,8 @@ static int rt5645_i2c_probe(struct i2c_client *i2c, } - ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5645, - rt5645_dai, ARRAY_SIZE(rt5645_dai)); - if (ret < 0) - goto err; - - return 0; -err: - return ret; + return snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5645, + rt5645_dai, ARRAY_SIZE(rt5645_dai)); } static int rt5645_i2c_remove(struct i2c_client *i2c)