[8/9] fdi2iclass: remove unused local variable

Submitted by Konstantin Kharlamov on March 23, 2019, 11:52 p.m.

Details

Message ID 20190323235203.30143-9-Hi-Angel@yandex.ru
State New
Headers show
Series "Fix some of LGTM warnings" ( rev: 2 1 ) in X.org

Not browsing as part of any series.

Commit Message

Konstantin Kharlamov March 23, 2019, 11:52 p.m.
Fixes LGTM warning "The value assigned to local variable 'children' is
never used."

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
---
 config/fdi2iclass.py | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/config/fdi2iclass.py b/config/fdi2iclass.py
index 36ef3801b..840d36f5a 100755
--- a/config/fdi2iclass.py
+++ b/config/fdi2iclass.py
@@ -184,9 +184,6 @@  def parse_fdi(fdi):
     # find all <match> leaf nodes
     num = 0
     for match_node in fdi.getElementsByTagName('match'):
-        children = set([n.tagName for n in match_node.childNodes
-                if n.nodeType == xml.dom.minidom.Node.ELEMENT_NODE])
-
         # see if there are any options at this level
         (driver, ignore, options) = parse_options(match_node)
         if not driver and not ignore and not options: