From: Simon Glass Date: Wed, 6 May 2020 22:29:04 +0000 (-0600) Subject: patman: Fix 'warning' typo X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=870bd567994b4455c9f68c3bc30fea6499fe5f54;p=oweals%2Fu-boot.git patman: Fix 'warning' typo If no warnings are detected due to checkpatch having unexpected options, patman currently shows an error: TypeError: unsupported operand type(s) for +=: 'int' and 'property' Fix this by initing the variable correctly. Signed-off-by: Simon Glass --- diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py index 795b519314..a2611a8a82 100644 --- a/tools/patman/checkpatch.py +++ b/tools/patman/checkpatch.py @@ -59,7 +59,7 @@ def CheckPatch(fname, verbose=False): 'stdout'] result = collections.namedtuple('CheckPatchResult', fields) result.ok = False - result.errors, result.warning, result.checks = 0, 0, 0 + result.errors, result.warnings, result.checks = 0, 0, 0 result.lines = 0 result.problems = [] chk = FindCheckPatch()