summaryrefslogtreecommitdiffstats
path: root/tools/find-drivers-needing-nonfree-firmware
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-10 15:02:36 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-10 15:03:17 +0200
commita9c0192970448d616608629761186301d604149b (patch)
tree184ae29bb01f104b2222511b9437749fd54da6ed /tools/find-drivers-needing-nonfree-firmware
parent10b753cec048ecb530c83fcab3d84063f84b5a80 (diff)
downloaddrakx-a9c0192970448d616608629761186301d604149b.tar
drakx-a9c0192970448d616608629761186301d604149b.tar.gz
drakx-a9c0192970448d616608629761186301d604149b.tar.bz2
drakx-a9c0192970448d616608629761186301d604149b.tar.xz
drakx-a9c0192970448d616608629761186301d604149b.zip
prevent listing modules more than once
Diffstat (limited to 'tools/find-drivers-needing-nonfree-firmware')
-rwxr-xr-xtools/find-drivers-needing-nonfree-firmware2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/find-drivers-needing-nonfree-firmware b/tools/find-drivers-needing-nonfree-firmware
index 86fdf1667..e8068baee 100755
--- a/tools/find-drivers-needing-nonfree-firmware
+++ b/tools/find-drivers-needing-nonfree-firmware
@@ -51,7 +51,7 @@ warn Data::Dumper->Dump([ \%firmwares ], [ 'firmwares' ]) if $debug;
# compute list of module that needs nonfree firmwares:
my @non_free_fw_drivers;
-foreach (@modules) {
+foreach (uniq(@modules)) {
my ($raw) = m!([^/]*)$!;
my $cache = $cache{modinfo} . $raw;
my @firmwares = cat_($cache);