Skip to content
Snippets Groups Projects
Commit e4ea3cc6 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

tools: ynl-gen: get attr type outside of if()


Reading attr type with mnl_attr_get_type() for each condition
leads to most conditions being longer than 80 chars.
Avoid this by reading the type to a variable on the stack.

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2c0f1466
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment