mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Remove buggy (root filesystems may not have cdev) and pointless
customization of an error message.
This commit is contained in:
parent
d634f69316
commit
2abf3a8c5a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132806
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user