summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-07 01:29:04 +0300
committerSimon Glass <sjg@chromium.org>2020-06-12 05:52:10 +0300
commit870bd567994b4455c9f68c3bc30fea6499fe5f54 (patch)
treeb077dc309d4bdb9d9d752a27d540cca99f61f6ee /tools
parentbe79009f3b9bbdbce283e67a865121e576d790ea (diff)
downloadu-boot-870bd567994b4455c9f68c3bc30fea6499fe5f54.tar.xz
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 <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/checkpatch.py2
1 files changed, 1 insertions, 1 deletions
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()