tools: ynl: process all scalar types encoding in single elif statement
authorJiri Pirko <jiri@nvidia.com>
Thu, 22 Feb 2024 13:43:50 +0000 (14:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Feb 2024 02:16:44 +0000 (18:16 -0800)
commitffe10a4546feaae085a269f6e99680b9eda7d5a6
treef964cb3230db2565bef674b44728f11487237ded
parentac95b1fca034d50d42a058a9476e0fe555653d0d
tools: ynl: process all scalar types encoding in single elif statement

As a preparation to handle enums for scalar values, unify the processing
of all scalar types in a single elif statement.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20240222134351.224704-3-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py