clk_rate_exclusive_get() returns 0 unconditionally. So remove error handling. This prepares making clk_rate_exclusive_get() return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> --- drivers/memory/tegra/tegra30-emc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/memory/tegra/tegra30-emc.c b/drivers/memory/tegra/tegra30-emc.c index 9eae25c57ec6..496b42c4c1a8 100644 --- a/drivers/memory/tegra/tegra30-emc.c +++ b/drivers/memory/tegra/tegra30-emc.c @@ -1696,11 +1696,7 @@ static int tegra_emc_suspend(struct device *dev) int err; /* take exclusive control over the clock's rate */ - err = clk_rate_exclusive_get(emc->clk); - if (err) { - dev_err(emc->dev, "failed to acquire clk: %d\n", err); - return err; - } + clk_rate_exclusive_get(emc->clk); /* suspending in a bad state will hang machine */ if (WARN(emc->bad_state, "hardware in a bad state\n")) -- 2.42.0