diff options
author | phk <phk@FreeBSD.org> | 2004-07-28 21:06:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-28 21:06:13 +0000 |
commit | ec6a70cfef0dd2f3390910c7285591e2bc5e6224 (patch) | |
tree | 8d21990d187e8366e834a5f27ea123f1580552da | |
parent | 075684f5fd95ff260b840fae30443cbffbf7cd0c (diff) | |
download | FreeBSD-src-ec6a70cfef0dd2f3390910c7285591e2bc5e6224.zip FreeBSD-src-ec6a70cfef0dd2f3390910c7285591e2bc5e6224.tar.gz |
Remove buggy (root filesystems may not have cdev) and pointless
customization of an error message.
-rw-r--r-- | sys/dev/digi/digi.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index e0cd291..ff5157e 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); |