mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
a132b784db
commit
3ecf87b2d8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue