Re: [PATCH v1 1/1] serial: core: Replace strncmp()+strlen() with plain strcmp()

From: Andy Shevchenko
Date: Thu Jul 27 2023 - 07:59:47 EST


On Thu, Jul 27, 2023 at 12:05:07PM +0300, Andy Shevchenko wrote:
> There is no sense to call strlen() ahead of strncmp().
> The same effect can be achieved by calling strcmp() directly.
> Replace strncmp()+strlen() with plain strcmp().

It seems I will have more against serial core, perhaps it makes sense to unite
them in a single series.

--
With Best Regards,
Andy Shevchenko