mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
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>
This commit is contained in:
@@ -59,7 +59,7 @@ def CheckPatch(fname, verbose=False):
|
|||||||
'stdout']
|
'stdout']
|
||||||
result = collections.namedtuple('CheckPatchResult', fields)
|
result = collections.namedtuple('CheckPatchResult', fields)
|
||||||
result.ok = False
|
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.lines = 0
|
||||||
result.problems = []
|
result.problems = []
|
||||||
chk = FindCheckPatch()
|
chk = FindCheckPatch()
|
||||||
|
Reference in New Issue
Block a user