Re: [PATCH v2] sys_prctl(): remove unsigned comparision with less than zero

From: Cyrill Gorcunov
Date: Wed Jul 24 2019 - 02:57:07 EST


On Wed, Jul 24, 2019 at 10:11:48AM +0800, Yang Xu wrote:
> Currently, when calling prctl(PR_SET_TIMERSLACK, arg2), arg2 is an
> unsigned long value, arg2 will never < 0. Negative judgment is
> meaningless, so remove it.
>
> Fixes: 6976675d9404 ("hrtimer: create a "timer_slack" field in the task struct")
> Signed-off-by: Yang Xu <xuyang2018.jy@xxxxxxxxxxxxxx>
> Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
Acked-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx>