Subject: Re: [PATCH net-next v3 2/2] tools: ynl-gen: fix parse multi-attr enum attribute

From: Jakub Kicinski <[email-masked]>
Date: Tue, 18 Jul 2023 20:19:13 -0700

On Tue, 18 Jul 2023 18:22:25 +0200 Arkadiusz Kubalewski wrote:
> +            if 'enum' in attr_spec:
> +                decoded = self._decode_enum(int.from_bytes(attr.raw, "big"), attr_spec)

why int.from_bytes(attr.raw, "big")?
'decoded' already holds the integer at this point