Commit 88c5bfec authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

memory: tegra: Do not handle error from wait_for_completion_timeout()

Contrary to its wait_for_completion_timeout_interruptible() sibling, the
wait_for_completion_timeout() function does not return an error.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent b56563d0
...@@ -224,7 +224,7 @@ static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate) ...@@ -224,7 +224,7 @@ static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate)
static int emc_complete_timing_change(struct tegra_emc *emc, bool flush) static int emc_complete_timing_change(struct tegra_emc *emc, bool flush)
{ {
long timeout; unsigned long timeout;
dev_dbg(emc->dev, "%s: flush %d\n", __func__, flush); dev_dbg(emc->dev, "%s: flush %d\n", __func__, flush);
...@@ -240,10 +240,6 @@ static int emc_complete_timing_change(struct tegra_emc *emc, bool flush) ...@@ -240,10 +240,6 @@ static int emc_complete_timing_change(struct tegra_emc *emc, bool flush)
if (timeout == 0) { if (timeout == 0) {
dev_err(emc->dev, "EMC-CAR handshake failed\n"); dev_err(emc->dev, "EMC-CAR handshake failed\n");
return -EIO; return -EIO;
} else if (timeout < 0) {
dev_err(emc->dev, "failed to wait for EMC-CAR handshake: %ld\n",
timeout);
return timeout;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment