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:
parent
be79009f3b
commit
870bd56799
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user