]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Replace strncmp with str_has_prefix
authorChuhong Yuan <hslester96@gmail.com>
Tue, 30 Jul 2019 02:44:15 +0000 (10:44 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Aug 2019 10:06:34 +0000 (11:06 +0100)
commit82931e3d322da510165a0faeb29a020c6e5664d6
tree94f0e816bed86c93cbd7d2d6ee36ac5fc05707b5
parent1d61fb2dacb007d8ca21d6ef97ad47abe84530d7
arm64: Replace strncmp with str_has_prefix

In commit 669951268b1b
("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: Will Deacon <will@kernel.org>
arch/arm64/kernel/module-plts.c
arch/arm64/mm/numa.c