summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2023-09-15 14:38:32 +0800
committerNamhyung Kim <namhyung@kernel.org>2023-09-18 15:38:46 -0700
commit3ecf87b2d8ffabb88d1e3901d7a429fd1ecbfc6c (patch)
tree02f783d10fa8ef99f3c450ef950954dbe261bc8d
parenta132b784db68b543fd2745973cd8b5edf8e9bde4 (diff)
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 <yang.lee@linux.alibaba.com> Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20230915063832.120274-1-yang.lee@linux.alibaba.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
-rw-r--r--tools/perf/util/bpf_kwork_top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/bpf_kwork_top.c b/tools/perf/util/bpf_kwork_top.c
index 1a607b94f44d..035e02272790 100644
--- a/tools/perf/util/bpf_kwork_top.c
+++ b/tools/perf/util/bpf_kwork_top.c
@@ -117,7 +117,7 @@ kwork_class_bpf_supported_list[KWORK_CLASS_MAX] = {
static bool valid_kwork_class_type(enum kwork_class_type type)
{
- return type >= 0 && type < KWORK_CLASS_MAX ? true : false;
+ return type >= 0 && type < KWORK_CLASS_MAX;
}
static int setup_filters(struct perf_kwork *kwork)