aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorConor Dooley <[email protected]>2023-06-07 21:28:25 +0100
committerPalmer Dabbelt <[email protected]>2023-06-21 07:45:13 -0700
commitfed14be476f075a523fd4addfee07cb2f8dc1971 (patch)
treec8beb705c7d091f9aca1525e4c1f4cdfd474148d /scripts/generate_rust_analyzer.py
parent748462b59f901557377b2c33ea9808ff2000e141 (diff)
RISC-V: simplify register width check in ISA string parsing
Saving off the `isa` pointer to a temp variable, followed by checking if it has been incremented is a bit of an odd pattern. Perhaps it was done to avoid a funky looking if statement mixed with the ifdeffery. Now that we use IS_ENABLED() here just return from the parser as soon as we detect a mismatch between the string and the currently running kernel. Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Reviewed-by: Sunil V L <[email protected]> Link: https://lore.kernel.org/r/20230607-splatter-bacterium-a75bb9f0d0b7@spud Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions