Skip to content

Commit

Permalink
kconfig: Hide error output in find command in streamline_config.pl
Browse files Browse the repository at this point in the history
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: Toralf Foerster <toralf.foerster@gmx.de>
LKML-Reference: <201005262022.02928.toralf.foerster@gmx.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Toralf Förster authored and Steven Rostedt committed May 28, 2010
1 parent 1d1d1fe commit 1743192
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ sub find_config {
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;
Expand Down Expand Up @@ -215,7 +217,6 @@ sub read_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>) {
Expand Down

0 comments on commit 1743192

Please sign in to comment.