]> 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)
commit51d18652de6e689d67f40f4f0bf0b121dff64f4e
tree810a69ac53bb627f7d90309af2656be976d593fa
parent0b085f98e9b11031ee0a6b6fa87331f13fb14ba4
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