Skip to contentSkip to conversation

kconfig: localmodconfig: remove unused $config

PATCH New Masahiro Yamada 1 participant 2 messages Dec 17, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kconfig: localmodconfig: remove unused $config

This is unused since commit cdfc47950a53 ("kconfig: search for a config to base the local(mod|yes)config on").

Having unused $config is confusing because $config is used as a local variable in various sub-routines.

---

 scripts/kconfig/streamline_config.pl | 2 --
 1 file changed, 2 deletions(-)
scripts/kconfig/streamline_config.pl +0 -2
index 08d76d7b3b81..bbaa1e11a4e9 100755
@@ -56,8 +56,6 @@ sub dprint {
     print STDERR @_;
 }
 
-my $config = ".config";
-
 my $uname = `uname -r`;
 chomp $uname;
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 kconfig: localmodconfig: fix indentation for closing brace

This is the closing brace for the foreach loop. Fix the misleading indentation.

---

 scripts/kconfig/streamline_config.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kconfig/streamline_config.pl +1 -1
index bbaa1e11a4e9..e2f8504f5a2d 100755
@@ -372,7 +372,7 @@ if (defined($lsmod_file)) {
 	    $lsmod = "$dir/lsmod";
 	    last;
 	}
-}
+    }
     if (!defined($lsmod)) {
 	# try just the path
 	$lsmod = "lsmod";
Signature · 1 line
2.17.1