Skip to content

Commit 02fd918

Browse files
jonhuntervireshk
authored andcommitted
cpufreq: tegra186: Simplify probe return path
We always put the reference to BPMP device on exit of the Tegra186 CPUFREQ driver and so there is no need to have separate exit paths for success and failure. Therefore, simplify the probe return path in the Tegra186 CPUFREQ driver by combining the success and failure paths. Signed-off-by: Jon Hunter <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 4264e02 commit 02fd918

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/cpufreq/tegra186-cpufreq.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,9 @@ static int tegra186_cpufreq_probe(struct platform_device *pdev)
223223
}
224224
}
225225

226-
tegra_bpmp_put(bpmp);
227-
228226
tegra186_cpufreq_driver.driver_data = data;
229227

230228
err = cpufreq_register_driver(&tegra186_cpufreq_driver);
231-
if (err)
232-
return err;
233-
234-
return 0;
235229

236230
put_bpmp:
237231
tegra_bpmp_put(bpmp);

0 commit comments

Comments
 (0)