diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-03-18 14:38:48 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-04-05 14:35:44 +0200 |
commit | 150f6d457cfcb37646b026251d8a584978618726 (patch) | |
tree | 0be4a3742086c7027bd0d152e76a79abb4f45e79 /drivers/crypto | |
parent | crypto: s5p-sss - Enable COMPILE_TEST (diff) | |
download | linux-150f6d457cfcb37646b026251d8a584978618726.tar.xz linux-150f6d457cfcb37646b026251d8a584978618726.zip |
crypto: n2 - Remove return statement from void function
Return statement at the end of a void function is useless.
The Coccinelle semantic patch used to make this change is as follows:
//<smpl>
@@
identifier f;
expression e;
@@
void f(...) {
<...
- return
e;
...>
}
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/n2_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index b85a7a7dbf63..c5aac25a5738 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c @@ -1598,7 +1598,7 @@ static void *new_queue(unsigned long q_type) static void free_queue(void *p, unsigned long q_type) { - return kmem_cache_free(queue_cache[q_type - 1], p); + kmem_cache_free(queue_cache[q_type - 1], p); } static int queue_cache_init(void) |