Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yang Li and committed by
Namhyung Kim
3ecf87b2 a132b784

+1 -1
+1 -1
tools/perf/util/bpf_kwork_top.c
··· 117 117 118 118 static bool valid_kwork_class_type(enum kwork_class_type type) 119 119 { 120 - return type >= 0 && type < KWORK_CLASS_MAX ? true : false; 120 + return type >= 0 && type < KWORK_CLASS_MAX; 121 121 } 122 122 123 123 static int setup_filters(struct perf_kwork *kwork)