summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/subr_firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/kern/subr_firmware.c')
-rw-r--r--freebsd/sys/kern/subr_firmware.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/freebsd/sys/kern/subr_firmware.c b/freebsd/sys/kern/subr_firmware.c
index cc8bb691..2780963c 100644
--- a/freebsd/sys/kern/subr_firmware.c
+++ b/freebsd/sys/kern/subr_firmware.c
@@ -260,7 +260,6 @@ firmware_unregister(const char *imagename)
static void
loadimage(void *arg, int npending)
{
- struct thread *td = curthread;
char *imagename = arg;
struct priv_fw *fp;
linker_file_t result;
@@ -270,11 +269,6 @@ loadimage(void *arg, int npending)
mtx_lock(&firmware_mtx);
mtx_unlock(&firmware_mtx);
- if (td->td_proc->p_fd->fd_rdir == NULL) {
- printf("%s: root not mounted yet, no way to load image\n",
- imagename);
- goto done;
- }
error = linker_reference_module(imagename, NULL, &result);
if (error != 0) {
printf("%s: could not load firmware image, error %d\n",