aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2022-04-29 14:38:01 -0700
committerakpm <[email protected]>2022-04-29 14:38:01 -0700
commitdffad91b06e0a1ee584f008565cbf2bb508a9777 (patch)
tree6f39e7834212d6093b827e8d2e892ef27513a50b /scripts/bpf_doc.py
parente0fa2ab3fcff42b8c2ed906f5619aae896e1e5e1 (diff)
lib/string.c: simplify str[c]spn
Use strchr(), which makes them a lot shorter, and more obviously symmetric in their treatment of accept/reject. It also saves a little bit of .text; bloat-o-meter for an arm build says Function old new delta strcspn 92 76 -16 strspn 108 76 -32 While here, also remove a stray empty line before EXPORT_SYMBOL(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Rasmus Villemoes <[email protected]> Cc: Andy Shevchenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions