Re: [PATCH] ARM: Replace strncmp with str_has_prefix

2019-08-05 Thread Kevin Hilman
Chuhong Yuan writes: > In commit b6b2735514bc > ("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 > --- >

[PATCH] ARM: Replace strncmp with str_has_prefix

2019-07-29 Thread Chuhong Yuan
In commit b6b2735514bc ("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 --- arch/arm/kernel/module-plts.c| 2 +-