diff options
| author | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-04-17 21:56:30 +0300 |
|---|---|---|
| committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-04-27 00:58:52 +0300 |
| commit | 69686fcbdcc0b6fed3b8d0907e641f282df2f827 (patch) | |
| tree | 970068a1d785db46a00092af0da75886af09c0ae /include | |
| parent | 97a5d2e5e35f119b6d7a37c7538773ae7af82dd5 (diff) | |
| download | linux-69686fcbdcc0b6fed3b8d0907e641f282df2f827.tar.xz | |
tracing: Change `if (strlen(glob))` to `if (glob[0])`
No need to traverse to the end of string. If the first byte is not a NUL
char, it's guaranteed `if (strlen(glob))` is true.
Link: https://lkml.kernel.org/r/20220417185630.199062-3-ammarfaizi2@gnuweeb.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
