diff options
author | Chin Yik Ming <yikming2222@gmail.com> | 2025-01-29 23:38:43 +0300 |
---|---|---|
committer | Alexandre Ghiti <alexghiti@rivosinc.com> | 2025-03-18 15:47:20 +0300 |
commit | 7f238b12660e53d7905b0d9989866b95a32c2467 (patch) | |
tree | a4f4f975e2326af206b547c9b287601ed5fee69b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a4a58f510bd8c28f6191eed5698a5291b420c2d6 (diff) | |
download | linux-7f238b12660e53d7905b0d9989866b95a32c2467.tar.xz |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions