diff options
author | Chin Yik Ming <yikming2222@gmail.com> | 2025-01-30 04:38:43 +0800 |
---|---|---|
committer | Alexandre Ghiti <alexghiti@rivosinc.com> | 2025-03-18 12:47:20 +0000 |
commit | 7f238b12660e53d7905b0d9989866b95a32c2467 (patch) | |
tree | a4f4f975e2326af206b547c9b287601ed5fee69b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a4a58f510bd8c28f6191eed5698a5291b420c2d6 (diff) |
riscv: Simplify base extension checks and direct boolean return
Reduce three lines checking to single line using a ternary conditional
expression for getting the base extension word. In addition, the
test_bit macro function already return a boolean which matches the
return type of the caller, so directly return the result of the test_bit
macro function.
Signed-off-by: Chin Yik Ming <yikming2222@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250129203843.1136838-1-yikming2222@gmail.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions