diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-06-05 12:24:11 +0300 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-27 11:24:40 -0400 |
commit | dd369800202f1aeeb23b64fe9d336d67b202c3b2 (patch) | |
tree | f28a4aa3b5cf0ddb62efdeb13e0199bb3f4d3ee6 /drivers/mmc/host/dw_mmc-pltfm.c | |
parent | bcc8766696fe2023b498a4a5c19cf8d2193aa62e (diff) | |
download | talos-op-linux-dd369800202f1aeeb23b64fe9d336d67b202c3b2.tar.gz talos-op-linux-dd369800202f1aeeb23b64fe9d336d67b202c3b2.zip |
mmc: dw_mmc: eliminate useless usage of ret
In few places usage of ret variable is not needed.
This patch simplifies those pieces of code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pltfm.c')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 526abae74c74..2721bd5839cb 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c @@ -56,8 +56,7 @@ int dw_mci_pltfm_register(struct platform_device *pdev, } platform_set_drvdata(pdev, host); - ret = dw_mci_probe(host); - return ret; + return dw_mci_probe(host); } EXPORT_SYMBOL_GPL(dw_mci_pltfm_register); @@ -81,26 +80,16 @@ EXPORT_SYMBOL_GPL(dw_mci_pltfm_remove); */ static int dw_mci_pltfm_suspend(struct device *dev) { - int ret; struct dw_mci *host = dev_get_drvdata(dev); - ret = dw_mci_suspend(host); - if (ret) - return ret; - - return 0; + return dw_mci_suspend(host); } static int dw_mci_pltfm_resume(struct device *dev) { - int ret; struct dw_mci *host = dev_get_drvdata(dev); - ret = dw_mci_resume(host); - if (ret) - return ret; - - return 0; + return dw_mci_resume(host); } #else #define dw_mci_pltfm_suspend NULL |