Skip to content

Commit

Permalink
crypto: n2 - Remove return statement from void function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amitoj Kaur Chawla authored and Herbert Xu committed Apr 5, 2016
1 parent dc1d9de commit 150f6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/n2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 150f6d4

Please sign in to comment.