Re: [PATCH net-next v3 1/3] string_helpers: Move string_is_valid() to the header

From: Jiri Pirko
Date: Wed Feb 08 2023 - 09:43:15 EST


Wed, Feb 08, 2023 at 02:31:51PM CET, andriy.shevchenko@xxxxxxxxxxxxxxx wrote:
>Move string_is_valid() to the header for wider use.
>
>While at it, rename to string_is_terminated() to be
>precise about its semantics.

While at it, you could drop the ternary operator and return memchr()
directly.

With or without it:
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>