]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: efivar.py unused variable
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 Jan 2021 01:20:45 +0000 (02:20 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 13 Jan 2021 01:38:00 +0000 (02:38 +0100)
Unused variables should be called '_'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
tools/efivar.py

index 29eb90a235bbd4459a7d1e5d364289b766c8c918..67729fa8505c882e7b47f5c548fa8cbab301cb80 100755 (executable)
@@ -292,7 +292,7 @@ def pkcs7_sign(cert, key, buf):
 
 # UEFI 2.8 Errata B "8.2.2 Using the EFI_VARIABLE_AUTHENTICATION_2 descriptor"
 def cmd_sign(args):
-    guid, name, attrs, data, size = parse_args(args)
+    guid, name, attrs, data, _ = parse_args(args)
     attrs |= EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS
     efi = EfiStruct()