dev-util/perf: remove unused patch

Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2026-02-20 18:59:37 +01:00
parent d67e5f688c
commit c9a4d0fb09

View File

@@ -1,27 +0,0 @@
Fix for --help command when no commands are excluded.
Link: https://lore.kernel.org/lkml/20251202213632.2873731-1-sjayaram@akamai.com/
See also: https://lore.kernel.org/lkml/aTXQw9dtP5df7LmP@gentoo.org/
--- a/tools/lib/subcmd/help.c
+++ b/tools/lib/subcmd/help.c
@@ -97,11 +97,13 @@ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
ei++;
}
}
- if (ci != cj) {
- while (ci < cmds->cnt) {
- cmds->names[cj++] = cmds->names[ci];
- cmds->names[ci++] = NULL;
+ while (ci < cmds->cnt) {
+ if (ci != cj) {
+ cmds->names[cj] = cmds->names[ci];
+ cmds->names[ci] = NULL;
}
+ ci++;
+ cj++;
}
for (ci = cj; ci < cmds->cnt; ci++)
assert(cmds->names[ci] == NULL);
--