diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-11-28 08:47:36 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-11-28 08:47:36 +0000 |
commit | c2a8682ae8f6227ad7e2adb2dfb2c9236c9ce171 (patch) | |
tree | 384147fb185e8ab42e72aecf36645c9ca4500782 /sys/kern/subr_firmware.c | |
parent | 584061b4807c5e1b03c10107730ab45e9f5e65d7 (diff) | |
download | src-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.c | 6 |
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", |