Re: [PATCH v2] powerpc/dt_cpu_ftrs: Avoid separate strlen() in scan_callback()
Madhavan Srinivasan <[email protected]> Mon, 3 Aug 2026 12:27:59 +0530
| Newsgroups | org.ozlabs.lists.linuxppc-dev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 01 Jul 2026 13:44:28 +0200, Thorsten Blum wrote:
> Check only the first byte instead of scanning the entire string with
> strlen(). While at it, keep dt_cpu_name static, but move it into
> dt_cpu_ftrs_scan_callback(), where it is assigned.
>
>
Applied to powerpc/next.
[1/1] powerpc/dt_cpu_ftrs: Avoid separate strlen() in scan_callback()
https://git.kernel.org/powerpc/c/b6cfbfd6b2992e3f34d255c983dc9f20ef0f5cd8
cheers