]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: rockchip-emmc: Minor code cleanup in rockchip_emmc_phy_power_on/off()
authorDouglas Anderson <dianders@chromium.org>
Mon, 20 Jun 2016 17:56:52 +0000 (10:56 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:20 +0000 (10:34 +0200)
commit352051ef1ff5efa8ba050bc3a581dbf136a1f97b
tree6e0fcf8dbeda48ae823306ef5626323fe2355f59
parent110754563c52b9cf375d48cfbe93cc1a5e92d530
phy: rockchip-emmc: Minor code cleanup in rockchip_emmc_phy_power_on/off()

There's no reason to store the return value of rockchip_emmc_phy_power()
in a variable nor to check it.  Just return it.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/phy/phy-rockchip-emmc.c