Merge pull request #290 from vax-r/Redundant_substract

Avoid redundant substraction in rsigmoid_u64
This commit is contained in:
Changwoo Min 2024-05-16 14:24:12 +09:00 committed by GitHub
commit 0ea0a48dfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,7 +461,7 @@ static u64 rsigmoid_u64(u64 v, u64 max)
* | \
* +----+-------->
*/
return (v > max) ? 0 : max - v;
return (v >= max) ? 0 : max - v;
}
static struct task_ctx *try_get_task_ctx(struct task_struct *p)