Skip to content

Commit d4d8140

Browse files
committed
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 <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b0142d6 commit d4d8140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpuidle/cpuidle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ u64 cpuidle_poll_time(struct cpuidle_driver *drv,
381381
if (dev->states_usage[i].disable)
382382
continue;
383383

384-
limit_ns = (u64)drv->states[i].target_residency_ns;
384+
limit_ns = drv->states[i].target_residency_ns;
385385
break;
386386
}
387387

0 commit comments

Comments
 (0)