]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: Replace strncmp with str_has_prefix
authorChuhong Yuan <hslester96@gmail.com>
Tue, 30 Jul 2019 03:02:39 +0000 (11:02 +0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 13 Jun 2020 00:43:17 +0000 (17:43 -0700)
commite52621a241376ffe920ee018e382e9394b3e8a6f
treea00ed0e15cdef3dea659cac659d95c2ae30e2ccc
parent15d0146aa7955523bb2fa38f8df6fa6cce8b3f6c
alpha: Replace strncmp with str_has_prefix

In commit ce6f8367934d
("tracing: Use str_has_prefix() instead of using fixed sizes")
the newly introduced str_has_prefix() was used
to replace error-prone strncmp(str, const, len).
Here fix codes with the same pattern.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/boot/tools/objstrip.c
arch/alpha/kernel/setup.c