Skip to contentSkip to conversation

scripts/modinfo-collect: remove unused/dead code

PATCH In review [email protected] 2 participants 3 messages Mar 16, 2022 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 14/27 scripts/modinfo-collect: remove unused/dead code

From: Marc-André Lureau <[email protected]>

---
 scripts/modinfo-collect.py | 5 -----
 1 file changed, 5 deletions(-)
scripts/modinfo-collect.py +0 -5
index 61b90688c6dc..4e7584df6676 100755
@@ -18,13 +18,8 @@ def find_command(src, target, compile_commands):
 
 def process_command(src, command):
     skip = False
-    arg = False
     out = []
     for item in shlex.split(command):
-        if arg:
-            out.append(x)
-            arg = False
-            continue
         if skip:
             skip = False
             continue
Signature · 1 line
2.35.1.273.ge6ebfd0e8cbb

A message that is not in the archive (sent off-list or not yet received): CAMxuvawM-Od_ED4mVoBt+VMYLOn_XEE1DxCKH9n-a4KCdRXSsw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

PATCH 14/27 scripts/modinfo-collect: remove unused/dead code

---------- Forwarded message ---------
From: Hoffmann, Gerd <[email protected]>
Date: Wed, Mar 16, 2022 at 6:54 PM
Subject: Re: Fwd: [PATCH 14/27] scripts/modinfo-collect: remove unused/dead code
To: Marc-André Lureau <[email protected]>

Quoted 3 lines · Marc-André Lureau

Hi Gerd, can you ack?

(get_maintainer.pl doesn't catch you here)

Looks ok, arg is never set to True.

Quoted 38 lines

thanks

---------- Forwarded message ---------
From: <[email protected]>
Date: Wed, Mar 16, 2022 at 1:53 PM
Subject: [PATCH 14/27] scripts/modinfo-collect: remove unused/dead code
To: <[email protected]>
Cc: Marc-André Lureau <[email protected]>, John Snow <[email protected]>, Cleber Rosa <[email protected]>

From: Marc-André Lureau <[email protected]>

---
 scripts/modinfo-collect.py | 5 -----
 1 file changed, 5 deletions(-)
scripts/modinfo-collect.py +0 -6
index 61b90688c6dc..4e7584df6676 100755
@@ -18,13 +18,8 @@ def find_command(src, target, compile_commands):
 
 def process_command(src, command):
     skip = False
-    arg = False
     out = []
     for item in shlex.split(command):
-        if arg:
-            out.append(x)
-            arg = False
-            continue
         if skip:
             skip = False
             continue
--
Quoted 2 lines

2.35.1.273.ge6ebfd0e8cbb

--

#4 lore raw
In reply to [email protected]
Quoted 26 lines · On Wed, Mar 16, 2022, 5:53 AM <[email protected]> wrote:

From: Marc-André Lureau <[email protected]>

---
 scripts/modinfo-collect.py | 5 -----
 1 file changed, 5 deletions(-)
scripts/modinfo-collect.py +0 -6
index 61b90688c6dc..4e7584df6676 100755
@@ -18,13 +18,8 @@ def find_command(src, target, compile_commands):
 
 def process_command(src, command):
     skip = False
-    arg = False
     out = []
     for item in shlex.split(command):
-        if arg:
-            out.append(x)
-            arg = False
-            continue
         if skip:
             skip = False
             continue
--
Quoted 2 lines

2.35.1.273.ge6ebfd0e8cbb

Acked-By <[email protected]>