From patchwork Mon Sep 5 13:38:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 75412 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp85789qgf; Mon, 5 Sep 2016 06:55:58 -0700 (PDT) X-Received: by 10.28.157.80 with SMTP id g77mr14038228wme.34.1473083758090; Mon, 05 Sep 2016 06:55:58 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id a135si17534224wmd.120.2016.09.05.06.55.57; Mon, 05 Sep 2016 06:55:58 -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 4860EA757A; Mon, 5 Sep 2016 15:55:57 +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 w0Ioi50Tphkm; Mon, 5 Sep 2016 15:55:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1CF6DA75C2; Mon, 5 Sep 2016 15:53:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DFDFB4B71E 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 Mr7vXaHRXyzW for ; Mon, 5 Sep 2016 15:38:10 +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 C17FA4B979 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 u85DbUXS023684; Mon, 5 Sep 2016 22:37:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u85DbUXS023684 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1473082657; bh=t9Nn2PSpP5vYR8v2JJMUKRS3xqjhe5eru3F9My5O5rQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKmFz3R572AR9MH6kUNZKxATTELKvnP/DW2SVuYDXfBuT5xHgieq/nO0xwNUmkhBz SfOrHdE/cfXFSbhBa9GTacEdj3uFaekDZ85NL9j79728mhQ+xi2a58blhpgAPcfbrt PaVyiyCkl8/nGtfM2b016G8RXHGaQYHoL5Bxuyjts7zWqEbZzy5f0lSAE8b/+kVdnz gSAXnMCMy2xVW3XcIkwqdgYvO9xNvaxmvN1p3ykU3smPg7P59rMt3EYlDwiyYwZE/y jy6hCrgF4Xi1qo1BpswI25gvBjTIRvTKWBdwHg+a+JjoqeXYOLLZJAxJKpbAOLT+FU Gp4Tkab19N9VQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 5 Sep 2016 22:38:42 +0900 Message-Id: <1473082723-17048-7-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 , Stephen Warren Subject: [U-Boot] [PATCH v2 6/7] power: 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_bus_init(). Signed-off-by: Masahiro Yamada --- drivers/power/axp809.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/drivers/power/axp809.c b/drivers/power/axp809.c index c8b76cf..c5b608d 100644 --- a/drivers/power/axp809.c +++ b/drivers/power/axp809.c @@ -217,13 +217,7 @@ int axp_set_sw(bool on) int axp_init(void) { - int ret; - - ret = pmic_bus_init(); - if (ret) - return ret; - - return 0; + return pmic_bus_init(); } int do_poweroff(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])