ARM: tegra: edp: remove unused code
Deepak Nibade [Mon, 5 Aug 2013 09:28:12 +0000 (14:28 +0530)]
- 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>

arch/arm/mach-tegra/edp.c

index bcdde17..c222eea 100644 (file)
@@ -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);
 }