Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masahiro Yamada and committed by
Herbert Xu
36e09e1f e9afc746

+4 -20
+1 -4
crypto/crct10dif_generic.c
··· 107 107 108 108 static int __init crct10dif_mod_init(void) 109 109 { 110 - int ret; 111 - 112 - ret = crypto_register_shash(&alg); 113 - return ret; 110 + return crypto_register_shash(&alg); 114 111 } 115 112 116 113 static void __exit crct10dif_mod_fini(void)
+1 -6
crypto/mcryptd.c
··· 612 612 613 613 int ahash_mcryptd_digest(struct ahash_request *desc) 614 614 { 615 - int err; 616 - 617 - err = crypto_ahash_init(desc) ?: 618 - ahash_mcryptd_finup(desc); 619 - 620 - return err; 615 + return crypto_ahash_init(desc) ?: ahash_mcryptd_finup(desc); 621 616 } 622 617 623 618 int ahash_mcryptd_update(struct ahash_request *desc)
+2 -10
drivers/crypto/hifn_795x.c
··· 636 636 637 637 static inline u32 hifn_read_0(struct hifn_device *dev, u32 reg) 638 638 { 639 - u32 ret; 640 - 641 - ret = readl(dev->bar[0] + reg); 642 - 643 - return ret; 639 + return readl(dev->bar[0] + reg); 644 640 } 645 641 646 642 static inline u32 hifn_read_1(struct hifn_device *dev, u32 reg) 647 643 { 648 - u32 ret; 649 - 650 - ret = readl(dev->bar[1] + reg); 651 - 652 - return ret; 644 + return readl(dev->bar[1] + reg); 653 645 } 654 646 655 647 static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val)