cpufreq: intel_pstate: Remove unnecessary type casting in div_s64() call
authorStratos Karafotis <stratosk@semaphore.gr>
Fri, 18 Jul 2014 15:37:18 +0000 (08:37 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jul 2014 11:43:17 +0000 (13:43 +0200)
div_s64() accepts the divisor parameter as s32. Helper div_fp()
also accepts divisor as int32_t.

So, remove the unnecessary int64_t type casting.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index 601c428cab9410f5dfe3628fd9983c8097fa263a..e5fd78072f8b045355ddf1014f88f60404a607b2 100644 (file)
@@ -50,7 +50,7 @@ static inline int32_t mul_fp(int32_t x, int32_t y)
 
 static inline int32_t div_fp(int32_t x, int32_t y)
 {
-       return div_s64((int64_t)x << FRAC_BITS, (int64_t)y);
+       return div_s64((int64_t)x << FRAC_BITS, y);
 }
 
 struct sample {