]> git.baikalelectronics.ru Git - kernel.git/commit
leaking_addresses: simplify path skipping
authorTobin C. Harding <me@tobin.cc>
Mon, 19 Feb 2018 00:03:37 +0000 (11:03 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commit40de531ce9d7e440df1ee8daf1d81f406b2263b2
tree810a69ac53bb627f7d90309af2656be976d593fa
parent38f2e082e7a3ae3f97671e8d9d3c172c7c79a6eb
leaking_addresses: simplify path skipping

Currently script has multiple configuration arrays.  This is confusing,
evident by the fact that a bunch of the entries are in the wrong place.
We can simplify the code by just having a single array for absolute
paths to skip and a single array for file names to skip wherever they
appear in the scanned directory tree.  There are also currently multiple
subroutines to handle the different arrays, we can reduce these to a
single subroutine also.

Simplify the path skipping code.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl