Skip to content

Commit 3ecf87b

Browse files
Yang Linamhyung
authored andcommitted
perf kwork top: Simplify bool conversion
./tools/perf/util/bpf_kwork_top.c:120:53-58: WARNING: conversion to bool not needed here Signed-off-by: Yang Li <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent a132b78 commit 3ecf87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/bpf_kwork_top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ kwork_class_bpf_supported_list[KWORK_CLASS_MAX] = {
117117

118118
static bool valid_kwork_class_type(enum kwork_class_type type)
119119
{
120-
return type >= 0 && type < KWORK_CLASS_MAX ? true : false;
120+
return type >= 0 && type < KWORK_CLASS_MAX;
121121
}
122122

123123
static int setup_filters(struct perf_kwork *kwork)

0 commit comments

Comments
 (0)