Re: [PATCH] strstarts: avoid calling strlen() if first char does not match

2023-10-22 Thread Greg KH
On Sun, Oct 22, 2023 at 06:35:47PM +0700, James Tirta Halim wrote: > --- > include/linux/string.h | 9 ++--- > tools/bpf/bpftool/gen.c | 2 +- > 2 files changed, 7 insertions(+), 4 deletions(-) > > diff --git a/include/linux/string.h b/include/linux/string.h > index dbfc66400050..1c51039604e

[PATCH] strstarts: avoid calling strlen() if first char does not match

2023-10-22 Thread James Tirta Halim
--- include/linux/string.h | 9 ++--- tools/bpf/bpftool/gen.c | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/linux/string.h b/include/linux/string.h index dbfc66400050..1c51039604e7 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -214,7 +214