diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-06 16:29:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-06-11 20:52:10 -0600 |
commit | 870bd567994b4455c9f68c3bc30fea6499fe5f54 (patch) | |
tree | b077dc309d4bdb9d9d752a27d540cca99f61f6ee /tools | |
parent | be79009f3b9bbdbce283e67a865121e576d790ea (diff) | |
download | u-boot-870bd567994b4455c9f68c3bc30fea6499fe5f54.tar.gz u-boot-870bd567994b4455c9f68c3bc30fea6499fe5f54.tar.bz2 u-boot-870bd567994b4455c9f68c3bc30fea6499fe5f54.zip |
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.py | 2 |
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() |