mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 02:32:11 +02:00
patman: Don't return the series in FixPatches()
There is no need for this function to return the same object that was passed in. Drop the return value. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
@@ -477,7 +477,6 @@ def FixPatches(series, fnames):
|
|||||||
print
|
print
|
||||||
count += 1
|
count += 1
|
||||||
print('Cleaned %d patches' % count)
|
print('Cleaned %d patches' % count)
|
||||||
return series
|
|
||||||
|
|
||||||
def InsertCoverLetter(fname, series, count):
|
def InsertCoverLetter(fname, series, count):
|
||||||
"""Inserts a cover letter with the required info into patch 0
|
"""Inserts a cover letter with the required info into patch 0
|
||||||
|
@@ -141,8 +141,8 @@ else:
|
|||||||
series)
|
series)
|
||||||
|
|
||||||
# Fix up the patch files to our liking, and insert the cover letter
|
# Fix up the patch files to our liking, and insert the cover letter
|
||||||
series = patchstream.FixPatches(series, args)
|
patchstream.FixPatches(series, args)
|
||||||
if series and cover_fname and series.get('cover'):
|
if cover_fname and series.get('cover'):
|
||||||
patchstream.InsertCoverLetter(cover_fname, series, options.count)
|
patchstream.InsertCoverLetter(cover_fname, series, options.count)
|
||||||
|
|
||||||
# Do a few checks on the series
|
# Do a few checks on the series
|
||||||
|
Reference in New Issue
Block a user