crypto: squash lines for simple wrapper functions

Remove unneeded variables and assignments.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Masahiro Yamada 2016-09-13 04:27:54 +09:00 committed by Herbert Xu
parent e9afc74629
commit 36e09e1f87
3 changed files with 4 additions and 20 deletions

View File

@ -107,10 +107,7 @@ static struct shash_alg alg = {
static int __init crct10dif_mod_init(void) static int __init crct10dif_mod_init(void)
{ {
int ret; return crypto_register_shash(&alg);
ret = crypto_register_shash(&alg);
return ret;
} }
static void __exit crct10dif_mod_fini(void) static void __exit crct10dif_mod_fini(void)

View File

@ -612,12 +612,7 @@ EXPORT_SYMBOL_GPL(mcryptd_alloc_ahash);
int ahash_mcryptd_digest(struct ahash_request *desc) int ahash_mcryptd_digest(struct ahash_request *desc)
{ {
int err; return crypto_ahash_init(desc) ?: ahash_mcryptd_finup(desc);
err = crypto_ahash_init(desc) ?:
ahash_mcryptd_finup(desc);
return err;
} }
int ahash_mcryptd_update(struct ahash_request *desc) int ahash_mcryptd_update(struct ahash_request *desc)

View File

@ -636,20 +636,12 @@ struct hifn_request_context {
static inline u32 hifn_read_0(struct hifn_device *dev, u32 reg) static inline u32 hifn_read_0(struct hifn_device *dev, u32 reg)
{ {
u32 ret; return readl(dev->bar[0] + reg);
ret = readl(dev->bar[0] + reg);
return ret;
} }
static inline u32 hifn_read_1(struct hifn_device *dev, u32 reg) static inline u32 hifn_read_1(struct hifn_device *dev, u32 reg)
{ {
u32 ret; return readl(dev->bar[1] + reg);
ret = readl(dev->bar[1] + reg);
return ret;
} }
static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val) static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val)