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:
Zhenlei Huang 2024-04-06 00:26:09 +08:00
parent 681711b77c
commit 317cc829ee

View file

@ -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