From: Rafael J. Wysocki Date: Wed, 11 Dec 2019 10:30:50 +0000 (+0100) Subject: cpuidle: Drop unnecessary type cast in cpuidle_poll_time() X-Git-Tag: baikal/mips/sdk5.9~14710^2^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0c0eb0030beb64f23356e8239e9140464f5a537d;p=kernel.git cpuidle: Drop unnecessary type cast in cpuidle_poll_time() The data type of the target_residency_ns field in struct cpuidle_state is u64, so it does not need to be cast into u64. Get rid of the unnecessary type cast. Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 15877b4311438..33d19c8eb0272 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -381,7 +381,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv, if (dev->states_usage[i].disable) continue; - limit_ns = (u64)drv->states[i].target_residency_ns; + limit_ns = drv->states[i].target_residency_ns; break; }