summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-09-16 09:19:49 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2015-10-26 15:59:56 +0100
commit930d50f7fd49fe485d9126ffd26dcc0428d7920a (patch)
tree8b85220e1fe1e5c85ce70082e9bf037c4b3d5f9d /drivers/mmc
parent14a7b416434a8076afb2dea8bb51c6514b41a47b (diff)
downloadop-kernel-dev-930d50f7fd49fe485d9126ffd26dcc0428d7920a.zip
op-kernel-dev-930d50f7fd49fe485d9126ffd26dcc0428d7920a.tar.gz
mmc: sdhci-of-at91: remove a line of dead code
The goto is correct and the unreachable "return -EINVAL" should be removed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-of-at91.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
index a0f05de..06d0b50 100644
--- a/drivers/mmc/host/sdhci-of-at91.c
+++ b/drivers/mmc/host/sdhci-of-at91.c
@@ -111,7 +111,6 @@ static int sdhci_at91_probe(struct platform_device *pdev)
if (ret < 0) {
dev_err(&pdev->dev, "failed to set gck");
goto hclock_disable_unprepare;
- return -EINVAL;
}
/*
* We need to check if we have the requested rate for gck because in
OpenPOWER on IntegriCloud