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: Toralf Foerster <toralf.foerster@gmx.de>
LKML-Reference: <201005262022.02928.toralf.foerster@gmx.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

authored by Toralf Förster and committed by Steven Rostedt 17431928 1d1d1fea

+3 -2
+3 -2
scripts/kconfig/streamline_config.pl
··· 115 115 my $kconfig = $ARGV[1]; 116 116 my $lsmod_file = $ARGV[2]; 117 117 118 - my @makefiles = `find $ksource -name Makefile`; 118 + my @makefiles = `find $ksource -name Makefile 2>/dev/null`; 119 + chomp @makefiles; 120 + 119 121 my %depends; 120 122 my %selects; 121 123 my %prompts; ··· 217 215 218 216 # Read all Makefiles to map the configs to the objects 219 217 foreach my $makefile (@makefiles) { 220 - chomp $makefile; 221 218 222 219 open(MIN,$makefile) || die "Can't open $makefile"; 223 220 while (<MIN>) {