diff options
author | Arkadiusz Kubalewski <[email protected]> | 2023-07-25 12:16:41 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-07-26 13:38:23 -0700 |
commit | d7ddf5f4269fcaf19aafe971e635d91897423a3a (patch) | |
tree | 04fa5b7e6659265ddcde9b1fbafb7d94f4ec4b34 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | d4a7ce642100765119a872d4aba1bf63e3a22c8a (diff) |
tools: ynl-gen: fix enum index in _decode_enum(..)
Remove wrong index adjustment, which is leftover from adding
support for sparse enums.
enum.entries_by_val() function shall not subtract the start-value, as
it is indexed with real enum value.
Fixes: c311aaa74ca1 ("tools: ynl: fix enum-as-flags in the generic CLI")
Signed-off-by: Arkadiusz Kubalewski <[email protected]>
Reviewed-by: Donald Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions