From patchwork Mon Sep 5 13:38:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 75410 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp85645qgf; Mon, 5 Sep 2016 06:55:32 -0700 (PDT) X-Received: by 10.28.69.143 with SMTP id l15mr16299261wmi.64.1473083729961; Mon, 05 Sep 2016 06:55:29 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id f135si17557556wmd.94.2016.09.05.06.55.29; Mon, 05 Sep 2016 06:55:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30641A7548; Mon, 5 Sep 2016 15:55:29 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xo3KoVHmeohL; Mon, 5 Sep 2016 15:55:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17470A757B; Mon, 5 Sep 2016 15:53:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1EA184B99D for ; Mon, 5 Sep 2016 15:38:10 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lWTOAKkNN4sR for ; Mon, 5 Sep 2016 15:38:09 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by theia.denx.de (Postfix) with ESMTPS id A37404B71E for ; Mon, 5 Sep 2016 15:37:58 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id u85DbUXR023684; Mon, 5 Sep 2016 22:37:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u85DbUXR023684 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1473082656; bh=aMiQyf1dVbACfH/B2O3zOORt5WcrnnOFn/ex+0PZkiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFz0rSUbt+MsILQf3RG+s8FVEf52JcvDFOojlb1ry3oz9TxgrN7CHyFIIvnlWWDH1 Pj9LgSDhVJybrRXUKx94SRjb4VaBQS3tc1s6F1rJIU8pF/LZWNOkHPAapKtrcqlprP 2+cDUOXJTFGq/R+WyUNthC11J5TAS9UIysVIGmIE24wcvcq6oiNeMBUO5pe+ydJCo+ ZYA3UwkGYz536O5K3eQF757gMtYIKWNf1jmQgmp+Sh4x7J5FYhQ7vkTO3fG2kLeRD9 kL2iUhLYPKm5rEhHxRhB5oy6PuiSZ78FDAI5qxtpHm1WJMbfUiqY8/KLlphwqxlbWy dQDShBnPztxxg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 5 Sep 2016 22:38:41 +0900 Message-Id: <1473082723-17048-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473082723-17048-1-git-send-email-yamada.masahiro@socionext.com> References: <1473082723-17048-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut , Robert Baldyga , Stephen Warren Subject: [U-Boot] [PATCH v2 5/7] samsung: squash lines for immediate return X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Currently, this function is just a wrapper of pmic_init(). Signed-off-by: Masahiro Yamada --- board/samsung/goni/goni.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 1600568..e8329bb 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -45,17 +45,11 @@ void i2c_init_board(void) int power_init_board(void) { - int ret; - /* * For PMIC the I2C bus is named as I2C5, but it is connected * to logical I2C adapter 0 */ - ret = pmic_init(I2C_0); - if (ret) - return ret; - - return 0; + return pmic_init(I2C_0); } int dram_init(void)