summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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);