summaryrefslogtreecommitdiffstats
path: root/src/loader/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/loader.c')
-rw-r--r--src/loader/loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 873f55c8a9c..c828105c951 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -56,6 +56,8 @@
#endif
#endif
+#include "util/macros.h"
+
#define __IS_LOADER
#include "pci_id_driver_map.h"
@@ -465,7 +467,7 @@ loader_get_driver_for_fd(int fd)
return driver;
}
- for (i = 0; driver_map[i].driver; i++) {
+ for (i = 0; i < ARRAY_SIZE(driver_map); i++) {
if (vendor_id != driver_map[i].vendor_id)
continue;