VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Stephen Hemminger <shemminger@vyatta.com> 2010-02-22 15:17:20 -0800 committer: Michal Marek <mmarek@suse.cz> 2010-03-07 21:39:33 +0100 commit: 9c49fd307a6cb2d3255f9441bce5b7cb08dff79e parent: 86d08e569f63a71a2d259507e335beea32b4d2aa
Commit Summary:
profile2linkerlist: fix perl warnings
Diffstat:
1 file changed, 3 insertions, 4 deletions
diff --git a/scripts/profile2linkerlist.pl b/scripts/profile2linkerlist.pl
index cb4260ebdb91..6943fa7cc95b 100644
--- a/scripts/profile2linkerlist.pl
+++ b/scripts/profile2linkerlist.pl
@@ -7,15 +7,13 @@
 # usage:
 #	 readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
 #
+use strict;
 
 while (<>) {
   my $line = $_;
 
   $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
 
-  if ( ($line =~ /unknown/) || ($line =~ /total/)) {
-
-  } else {
-    print "*(.text.$1)\n";
-  }
+  print "*(.text.$1)\n"
+      unless ($line =~ /unknown/) || ($line =~ /total/);
 }