summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/edp.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2013-08-05 14:58:12 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:38:49 -0700
commitdc82ba57f06a420d31b5de2bb54be97fee1e646a (patch)
tree6f25efc4dfee1aaabe3eca65e080c7a19f2f1300 /arch/arm/mach-tegra/edp.c
parent4f5e98f3dbf8d1d9bcebc70ab0d28a0baf3e752c (diff)
ARM: tegra: edp: remove unused code
- fix Coverity issue Coverity id : 23764 Bug 1329327 Change-Id: I8adc5c72dab7e0e55d6173fde332ade0d7da710d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/258132 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/edp.c')
-rw-r--r--arch/arm/mach-tegra/edp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/edp.c b/arch/arm/mach-tegra/edp.c
index bcdde17e1546..c222eea487e2 100644
--- a/arch/arm/mach-tegra/edp.c
+++ b/arch/arm/mach-tegra/edp.c
@@ -137,7 +137,7 @@ static unsigned int edp_calculate_maxf(
{
unsigned int voltage_mV, freq_KHz = 0;
unsigned int cur_effective = regulator_cur - edp_reg_override_mA;
- int f, i, j, k, r = 0;
+ int f, i, j, k;
s64 leakage_mA, dyn_mA, leakage_calc_step;
s64 leakage_mW, dyn_mW;
@@ -215,9 +215,6 @@ static unsigned int edp_calculate_maxf(
}
end:
- if (r != 0)
- return r;
-
return edp_apply_fixed_limits(freq_KHz, params,
cur_effective, temp_C, n_cores_idx);
}