aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_firmware.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-11-28 08:47:36 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-11-28 08:47:36 +0000
commitc2a8682ae8f6227ad7e2adb2dfb2c9236c9ce171 (patch)
tree384147fb185e8ab42e72aecf36645c9ca4500782 /sys/kern/subr_firmware.c
parent584061b4807c5e1b03c10107730ab45e9f5e65d7 (diff)
downloadsrc-c2a8682ae8f6227ad7e2adb2dfb2c9236c9ce171.tar.gz
src-c2a8682ae8f6227ad7e2adb2dfb2c9236c9ce171.zip
Factor out check for mounted root file system.
Differential Revision: https://reviews.freebsd.org/D22571 PR: 241639 MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=355170
Diffstat (limited to 'sys/kern/subr_firmware.c')
-rw-r--r--sys/kern/subr_firmware.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/subr_firmware.c b/sys/kern/subr_firmware.c
index 676991418648..f174d5a889d6 100644
--- a/sys/kern/subr_firmware.c
+++ b/sys/kern/subr_firmware.c
@@ -257,7 +257,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;
@@ -267,11 +266,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",