From patchwork Tue Jun 10 03:37:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4326551 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 B86A59F390 for ; Tue, 10 Jun 2014 03:38:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3DAD2018A for ; Tue, 10 Jun 2014 03:38:19 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B1A5B2013D for ; Tue, 10 Jun 2014 03:38:18 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8FFFD265193; Tue, 10 Jun 2014 05:38:17 +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 B290226567C; Tue, 10 Jun 2014 05:37:57 +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 E8AA12656B7; Tue, 10 Jun 2014 05:37:56 +0200 (CEST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by alsa0.perex.cz (Postfix) with ESMTP id 19F142651E4 for ; Tue, 10 Jun 2014 05:37:29 +0200 (CEST) Received: by mail-pa0-f48.google.com with SMTP id bj1so209505pad.35 for ; Mon, 09 Jun 2014 20:37:29 -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=eENcrx4+P+PqBJ5Jjl3ZI+TU85DKhGfzD7MpXOcZ9fI=; b=OXECUQ9IVmseLDvTc0tntSzl+1TSc8RMv1eGpCKTAEnpI3OBqaJiJnD4YjjLljPEOh kZikcjTpWkOTKUuijRC8Ko0Ui19u1Nkta4fojqeoeirWAxOP0Fr/24v8sRVnSI27ga7S VF2EH1xQZGlWHPTYBZNPQQc11YtQ8A2iabErQ6z3gbR3J4LqptcZOy0dyGZtJRox37Co duScHl1otXFAsqN8HTzLPkrk36kM4UEE/+2dAnz862Pr8JkPqcioc1dAxYnhnhegxu6m ktwz8Z0qnJMArI+A8kxslesvBTWA+So+k+VWT79FoseOclsVlrud/m9QqCJLtIIhG9jd kOUQ== X-Gm-Message-State: ALoCoQlwqVz+X+DrlUE5yDiAdb0LNX5Kd+bNecO03pysnlp5ca6HY+ai4yM9QfGBOf9mGJ6qRQTH X-Received: by 10.68.200.10 with SMTP id jo10mr8106105pbc.143.1402371449046; Mon, 09 Jun 2014 20:37:29 -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 io8sm66584694pbc.96.2014.06.09.20.37.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 09 Jun 2014 20:37:28 -0700 (PDT) Message-ID: <1402371444.16323.3.camel@phoenix> From: Axel Lin To: Mark Brown Date: Tue, 10 Jun 2014 11:37:24 +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 3/3] ASoC: rt5677: Remove unneeded goto in rt5677_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/rt5677.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index e7c401f..43c82cd 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3373,14 +3373,8 @@ static int rt5677_i2c_probe(struct i2c_client *i2c, regmap_update_bits(rt5677->regmap, RT5677_IN1, RT5677_IN_DF2, RT5677_IN_DF2); - ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5677, - rt5677_dai, ARRAY_SIZE(rt5677_dai)); - if (ret < 0) - goto err; - - return 0; -err: - return ret; + return snd_soc_register_codec(&i2c->dev, &soc_codec_dev_rt5677, + rt5677_dai, ARRAY_SIZE(rt5677_dai)); } static int rt5677_i2c_remove(struct i2c_client *i2c)