[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230718201913.632b6936@kernel.org>
Date: Tue, 18 Jul 2023 20:19:13 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>
Cc: donald.hunter@...il.com, netdev@...r.kernel.org, davem@...emloft.net,
pabeni@...hat.com, edumazet@...gle.com
Subject: Re: [PATCH net-next v3 2/2] tools: ynl-gen: fix parse multi-attr
enum attribute
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
Powered by blists - more mailing lists