summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/dw_mmc-pci.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-06-05 09:24:11 (GMT)
committerChris Ball <cjb@laptop.org>2013-06-27 15:24:40 (GMT)
commitdd369800202f1aeeb23b64fe9d336d67b202c3b2 (patch)
treef28a4aa3b5cf0ddb62efdeb13e0199bb3f4d3ee6 /drivers/mmc/host/dw_mmc-pci.c
parentbcc8766696fe2023b498a4a5c19cf8d2193aa62e (diff)
downloadlinux-dd369800202f1aeeb23b64fe9d336d67b202c3b2.tar.xz
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-pci.c')
-rw-r--r--drivers/mmc/host/dw_mmc-pci.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index 083fcd2..c469ce6 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -100,22 +100,18 @@ static void dw_mci_pci_remove(struct pci_dev *pdev)
#ifdef CONFIG_PM_SLEEP
static int dw_mci_pci_suspend(struct device *dev)
{
- int ret;
struct pci_dev *pdev = to_pci_dev(dev);
struct dw_mci *host = pci_get_drvdata(pdev);
- ret = dw_mci_suspend(host);
- return ret;
+ return dw_mci_suspend(host);
}
static int dw_mci_pci_resume(struct device *dev)
{
- int ret;
struct pci_dev *pdev = to_pci_dev(dev);
struct dw_mci *host = pci_get_drvdata(pdev);
- ret = dw_mci_resume(host);
- return ret;
+ return dw_mci_resume(host);
}
#else
#define dw_mci_pci_suspend NULL