[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y+O0+ngPHklhtx6k@nanopsycho>
Date: Wed, 8 Feb 2023 15:43:06 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Jakub Kicinski <kuba@...nel.org>, Xin Long <lucien.xin@...il.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
dev@...nvswitch.org, tipc-discussion@...ts.sourceforge.net,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Pravin B Shelar <pshelar@....org>,
Jon Maloy <jmaloy@...hat.com>,
Ying Xue <ying.xue@...driver.com>,
Simon Horman <simon.horman@...igine.com>
Subject: Re: [PATCH net-next v3 1/3] string_helpers: Move string_is_valid()
to the header
Wed, Feb 08, 2023 at 02:31:51PM CET, andriy.shevchenko@...ux.intel.com 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@...dia.com>
Powered by blists - more mailing lists