summaryrefslogtreecommitdiff
path: root/drivers/mmc/zynq_sdhci.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-06 22:17:32 +0900
committerTom Rini <trini@konsulko.com>2016-09-23 17:53:44 -0400
commit24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a (patch)
tree53282ede51b26d1358e8e375d31f1b7eee271dab /drivers/mmc/zynq_sdhci.c
parentdf9e4cdabbb9ea2a1a1686d58bc389cb028a41f0 (diff)
downloadu-boot-imx-24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a.zip
u-boot-imx-24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a.tar.gz
u-boot-imx-24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a.tar.bz2
mmc: squash lines for immediate return
These functions can be much simpler by squashing lines for immediate return. For *_bind() callbacks, they will be a simple wrapper function of an upper-level bind API. For mmc_set_{boot_bus_width,part_conf}, they will be a wrapper of mmc_switch(). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/zynq_sdhci.c')
-rw-r--r--drivers/mmc/zynq_sdhci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index 3815b94..b991102 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -63,13 +63,8 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
static int arasan_sdhci_bind(struct udevice *dev)
{
struct arasan_sdhci_plat *plat = dev_get_platdata(dev);
- int ret;
- ret = sdhci_bind(dev, &plat->mmc, &plat->cfg);
- if (ret)
- return ret;
-
- return 0;
+ return sdhci_bind(dev, &plat->mmc, &plat->cfg);
}
static const struct udevice_id arasan_sdhci_ids[] = {