mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
LinuxKPI: Remove the temporary variable fileid from the macro request_module
The variable fileid stores the result from kern_kldload() but never gets used. Since the third parameter `*fileid` of kern_kldload() can be NULL, this unused variable can be safely removed. No functional change intended. Reviewed by: emaste, bz, #linuxkpi MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44583
This commit is contained in:
parent
681711b77c
commit
317cc829ee
|
@ -39,9 +39,8 @@
|
|||
#define request_module(...) \
|
||||
({\
|
||||
char modname[128]; \
|
||||
int fileid; \
|
||||
snprintf(modname, sizeof(modname), __VA_ARGS__); \
|
||||
kern_kldload(curthread, modname, &fileid); \
|
||||
kern_kldload(curthread, modname, NULL); \
|
||||
})
|
||||
|
||||
#define request_module_nowait request_module
|
||||
|
|
Loading…
Reference in a new issue