diff mbox series

[U-Boot,v2,09/31] binman: Drop an unused arg in Entry.Lookup()

Message ID 20190708202553.225715-10-sjg@chromium.org
State Accepted
Commit c073ced7a325b46dab14183af26e4b8bc3c4f3d0
Delegated to: Simon Glass
Headers show
Series binman: Allow reading of images to list contents | expand

Commit Message

Simon Glass July 8, 2019, 8:25 p.m. UTC
The first argument is not used. Remove it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 tools/binman/entry.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Simon Glass July 18, 2019, 1:58 a.m. UTC | #1
The first argument is not used. Remove it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 tools/binman/entry.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/tools/binman/entry.py b/tools/binman/entry.py
index 8cccc2ed5f0..00bb1d190a9 100644
--- a/tools/binman/entry.py
+++ b/tools/binman/entry.py
@@ -85,11 +85,10 @@  class Entry(object):
             self.ReadNode()
 
     @staticmethod
-    def Lookup(section, node_path, etype):
+    def Lookup(node_path, etype):
         """Look up the entry class for a node.
 
         Args:
-            section:   Section object containing this node
             node_node: Path name of Node object containing information about
                        the entry to create (used for errors)
             etype:   Entry type to use
@@ -140,7 +139,7 @@  class Entry(object):
         """
         if not etype:
             etype = fdt_util.GetString(node, 'type', node.name)
-        obj = Entry.Lookup(section, node.path, etype)
+        obj = Entry.Lookup(node.path, etype)
 
         # Call its constructor to get the object we want.
         return obj(section, etype, node)
@@ -514,7 +513,7 @@  features to produce new behaviours.
             modules.remove('_testing')
         missing = []
         for name in modules:
-            module = Entry.Lookup(name, name, name)
+            module = Entry.Lookup(name, name)
             docs = getattr(module, '__doc__')
             if test_missing == name:
                 docs = None