Skip to content

Commit 88c5bfe

Browse files
digetxthierryreding
authored andcommitted
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: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent b56563d commit 88c5bfe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/memory/tegra/tegra20-emc.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate)
224224

225225
static int emc_complete_timing_change(struct tegra_emc *emc, bool flush)
226226
{
227-
long timeout;
227+
unsigned long timeout;
228228

229229
dev_dbg(emc->dev, "%s: flush %d\n", __func__, flush);
230230

@@ -240,10 +240,6 @@ static int emc_complete_timing_change(struct tegra_emc *emc, bool flush)
240240
if (timeout == 0) {
241241
dev_err(emc->dev, "EMC-CAR handshake failed\n");
242242
return -EIO;
243-
} else if (timeout < 0) {
244-
dev_err(emc->dev, "failed to wait for EMC-CAR handshake: %ld\n",
245-
timeout);
246-
return timeout;
247243
}
248244

249245
return 0;

0 commit comments

Comments
 (0)