diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-09-04 09:02:39 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-09-04 09:02:39 -0700 |
| commit | 8697648c34930bb48cfc40785688cd73a3e7269c (patch) | |
| tree | 16c8c0c84eabf6af26e95172386b2ecf009dec04 /include | |
| parent | fb06b8eebfcfba5bb21de79f01530c168fb91a76 (diff) | |
[CRYPTO]: Use try_then_request_module().
try_then_request_module() does what crypto/autoload.c is doing, so
replace it. Fix try_then_request_module(), too (thanks James).
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kmod.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 7fa02a737518..8412faeea0f7 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -29,7 +29,7 @@ extern int request_module(const char * name, ...) __attribute__ ((format (printf static inline int request_module(const char * name, ...) { return -ENOSYS; } #endif -#define try_then_request_module(x, mod...) ((x) ?: request_module(mod), (x)) +#define try_then_request_module(x, mod...) ((x) ?: (request_module(mod), (x))) extern int call_usermodehelper(char *path, char *argv[], char *envp[], int wait); #ifdef CONFIG_HOTPLUG |
