diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index b6aec5e4365f..7070c891ea29 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -54,10 +54,6 @@ sub check_include my $inc = $1; my $found; $found = stat($dir . "/" . $inc); - if (!$found) { - $inc =~ s#asm/#asm-$arch/#; - $found = stat($dir . "/" . $inc); - } if (!$found) { printf STDERR "$filename:$lineno: included file '$inc' is not exported\n"; $ret = 1;