Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17431928 authored by Toralf Förster's avatar Toralf Förster Committed by Steven Rostedt
Browse files

kconfig: Hide error output in find command in streamline_config.pl



Finding the list of Makefiles in streamline-config should not report errors.

Also move the "chomp" to the @makefiles array instead of doing it in the
for loop. This is more efficient, and does not make it any less readable
by C programmers.

Signed-off-by: default avatarToralf Foerster <toralf.foerster@gmx.de>
LKML-Reference: <201005262022.02928.toralf.foerster@gmx.de>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 1d1d1fea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -115,7 +115,9 @@ my $ksource = $ARGV[0];
my $kconfig = $ARGV[1];
my $lsmod_file = $ARGV[2];

my @makefiles = `find $ksource -name Makefile`;
my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
chomp @makefiles;

my %depends;
my %selects;
my %prompts;
@@ -215,7 +217,6 @@ if ($kconfig) {

# Read all Makefiles to map the configs to the objects
foreach my $makefile (@makefiles) {
    chomp $makefile;

    open(MIN,$makefile) || die "Can't open $makefile";
    while (<MIN>) {