diff --git a/sbin/devmatch/devmatch.c b/sbin/devmatch/devmatch.c index 9c03179f7f46..a5b2af80fec2 100644 --- a/sbin/devmatch/devmatch.c +++ b/sbin/devmatch/devmatch.c @@ -120,12 +120,8 @@ read_linker_hints(void) continue; break; } - if (q == NULL) { - warnx("Can't read linker hints file."); - free(hints); - hints = NULL; - return; - } + if (q == NULL) + errx(1, "Can't read linker hints file."); } else { hints = read_hints(linker_hints, &len); if (hints == NULL)