]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tools: ynl: remove trailing semicolon
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Mar 2024 19:25:55 +0000 (11:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 22:15:27 +0000 (15:15 -0700)
Commit e8a6c515ff5f ("tools: ynl: allow user to pass enum string
instead of scalar value") added a semicolon at the end of a line.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240308192555.2550253-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py

index 2d7fdd903d9ec3cffe0b5eb2673e9c05ba404db3..5fa7957f6e0f56646249c278b7434f300754df77 100644 (file)
@@ -489,7 +489,7 @@ class YnlFamily(SpecFamily):
         except (ValueError, TypeError) as e:
             if 'enum' not in attr_spec:
                 raise e
-        return self._encode_enum(attr_spec, value);
+        return self._encode_enum(attr_spec, value)
 
     def _add_attr(self, space, name, value, search_attrs):
         try: