From a9c0192970448d616608629761186301d604149b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Jun 2016 15:02:36 +0200 Subject: prevent listing modules more than once --- tools/find-drivers-needing-nonfree-firmware | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1