Re: [LTP] [PATCH 2/2] ioprio: Use IOPRIO_PRIO_NUM to check prio range

Linus Walleij
2023-06-07T06:45:02Z

On Mon, Jun 5, 2023 at 6:41 AM Damien Le Moal <dlemoal@kernel.org> wrote:

> Use the macro IOPRIO_PRIO_NUM in prio_in_range() to check the upper
> bound of the valid range for priority levels. Similarly, in the test
> case ioprio_set03, use this macro to check for failures when the user
> attempts using a priority level out of range.
>
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij