浏览代码

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>
Dan Carpenter 10 年之前
父节点
当前提交
930d50f7fd
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/mmc/host/sdhci-of-at91.c

+ 0 - 1
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