cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Dec 2019 10:30:50 +0000 (11:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Dec 2019 16:56:08 +0000 (17:56 +0100)
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 <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c

index 15877b4311438b924277d57adf14d62bc4aed6b3..33d19c8eb02723646d48ad1eb9a864fd0bc13d81 100644 (file)
@@ -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;
        }