mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 09:18:46 +07:00
cpufreq: intel_pstate: Remove unnecessary type casting in div_s64() call
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>
This commit is contained in:
parent
317dd50e80
commit
fa30dff9a8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user