Commit 0466165b authored by James Morris's avatar James Morris Committed by David S. Miller

[CRYPTO]: Fix non-modular build.

parent f7f9e054
...@@ -199,12 +199,7 @@ static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) ...@@ -199,12 +199,7 @@ static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm)
static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm) static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
{ {
struct crypto_alg *alg = tfm->__crt_alg; return module_name(tfm->__crt_alg->cra_module);
if (alg->cra_module)
return alg->cra_module->name;
else
return NULL;
} }
static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment