summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-13 04:27:54 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-13 20:27:26 +0800
commit36e09e1f874baf581604a76ce81aae0538eb0a23 (patch)
tree4a97f41ba9255097188b1c26edd6782c10fb1b68 /drivers/crypto
parente9afc746299d39f415fdb13b1213137deb4fc497 (diff)
downloadlinux-36e09e1f874baf581604a76ce81aae0538eb0a23.tar.gz
linux-36e09e1f874baf581604a76ce81aae0538eb0a23.tar.bz2
linux-36e09e1f874baf581604a76ce81aae0538eb0a23.zip
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/hifn_795x.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index eee2c7e6c299..e09d4055b19e 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -636,20 +636,12 @@ struct hifn_request_context {
static inline u32 hifn_read_0(struct hifn_device *dev, u32 reg)
{
- u32 ret;
-
- ret = readl(dev->bar[0] + reg);
-
- return ret;
+ return readl(dev->bar[0] + reg);
}
static inline u32 hifn_read_1(struct hifn_device *dev, u32 reg)
{
- u32 ret;
-
- ret = readl(dev->bar[1] + reg);
-
- return ret;
+ return readl(dev->bar[1] + reg);
}
static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val)