Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: ynl: remove unnecessary semicolons

These semicolons are not required according to Ruff. Simply remove them.

This is linked to Ruff error E703 [1]:

A trailing semicolon is unnecessary and should be removed.

Link: https://docs.astral.sh/ruff/rules/useless-semicolon/ [1]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Link: https://patch.msgid.link/20250909-net-next-ynl-ruff-v1-6-238c2bccdd99@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Matthieu Baerts (NGI0) and committed by
Jakub Kicinski
616129d6 389712b0

+2 -2
+1 -1
tools/net/ynl/pyynl/lib/nlspec.py
··· 501 501 return SpecStruct(self, elem) 502 502 503 503 def new_sub_message(self, elem): 504 - return SpecSubMessage(self, elem); 504 + return SpecSubMessage(self, elem) 505 505 506 506 def new_operation(self, elem, req_val, rsp_val): 507 507 return SpecOperation(self, elem, req_val, rsp_val)
+1 -1
tools/net/ynl/pyynl/lib/ynl.py
··· 738 738 decoded = {} 739 739 offset = 0 740 740 if msg_format.fixed_header: 741 - decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header)); 741 + decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header)) 742 742 offset = self._struct_size(msg_format.fixed_header) 743 743 if msg_format.attr_set: 744 744 if msg_format.attr_set in self.attr_sets: