From 2abf3a8c5aaf6ba60b247534dd524a641764c533 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 28 Jul 2004 21:06:13 +0000 Subject: [PATCH] Remove buggy (root filesystems may not have cdev) and pointless customization of an error message. --- sys/dev/digi/digi.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index e0cd291a51ef..ff5157e3f3d4 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -1020,14 +1020,9 @@ digi_loadmoduledata(struct digi_softc *sc) modlen = strlen(sc->module); modfile = malloc(modlen + 6, M_TEMP, M_WAITOK); snprintf(modfile, modlen + 6, "digi_%s", sc->module); - if ((res = linker_reference_module(modfile, NULL, &lf)) != 0) { - if (res == ENOENT && rootdev == NULL) - printf("%s: Failed to autoload module: No filesystem\n", - modfile); - else - printf("%s: Failed %d to autoload module\n", modfile, - res); - } + res = linker_reference_module(modfile, NULL, &lf); + if ((res = linker_reference_module(modfile, NULL, &lf)) != 0) + printf("%s: Failed %d to autoload module\n", modfile, res); free(modfile, M_TEMP); if (res != 0) return (res);