]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Don't return the series in FixPatches()
authorSimon Glass <sjg@chromium.org>
Mon, 29 May 2017 21:31:27 +0000 (15:31 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 02:21:59 +0000 (20:21 -0600)
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>
tools/patman/patchstream.py
tools/patman/patman.py

index 324c65442f440fade9b682f8303a5fdc038f87aa..6098728aa118db0e20d59a590072263faf37aefc 100644 (file)
@@ -477,7 +477,6 @@ def FixPatches(series, fnames):
             print
         count += 1
     print('Cleaned %d patches' % count)
-    return series
 
 def InsertCoverLetter(fname, series, count):
     """Inserts a cover letter with the required info into patch 0
index fdbee67f559bc94becc9d8ac447871853ec4a52f..63da3f3200965c9aaafa88f3efb4421616154fd3 100755 (executable)
@@ -141,8 +141,8 @@ else:
                 series)
 
     # Fix up the patch files to our liking, and insert the cover letter
-    series = patchstream.FixPatches(series, args)
-    if series and cover_fname and series.get('cover'):
+    patchstream.FixPatches(series, args)
+    if cover_fname and series.get('cover'):
         patchstream.InsertCoverLetter(cover_fname, series, options.count)
 
     # Do a few checks on the series