mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
binman: Drop an unused arg in Entry.Lookup()
The first argument is not used. Remove it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -85,11 +85,10 @@ class Entry(object):
|
|||||||
self.ReadNode()
|
self.ReadNode()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def Lookup(section, node_path, etype):
|
def Lookup(node_path, etype):
|
||||||
"""Look up the entry class for a node.
|
"""Look up the entry class for a node.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
section: Section object containing this node
|
|
||||||
node_node: Path name of Node object containing information about
|
node_node: Path name of Node object containing information about
|
||||||
the entry to create (used for errors)
|
the entry to create (used for errors)
|
||||||
etype: Entry type to use
|
etype: Entry type to use
|
||||||
@@ -140,7 +139,7 @@ class Entry(object):
|
|||||||
"""
|
"""
|
||||||
if not etype:
|
if not etype:
|
||||||
etype = fdt_util.GetString(node, 'type', node.name)
|
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.
|
# Call its constructor to get the object we want.
|
||||||
return obj(section, etype, node)
|
return obj(section, etype, node)
|
||||||
@@ -514,7 +513,7 @@ features to produce new behaviours.
|
|||||||
modules.remove('_testing')
|
modules.remove('_testing')
|
||||||
missing = []
|
missing = []
|
||||||
for name in modules:
|
for name in modules:
|
||||||
module = Entry.Lookup(name, name, name)
|
module = Entry.Lookup(name, name)
|
||||||
docs = getattr(module, '__doc__')
|
docs = getattr(module, '__doc__')
|
||||||
if test_missing == name:
|
if test_missing == name:
|
||||||
docs = None
|
docs = None
|
||||||
|
Reference in New Issue
Block a user