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

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>

authored by

Amitoj Kaur Chawla and committed by
Herbert Xu
150f6d45 dc1d9dee

+1 -1
+1 -1
drivers/crypto/n2_core.c
··· 1598 1598 1599 1599 static void free_queue(void *p, unsigned long q_type) 1600 1600 { 1601 - return kmem_cache_free(queue_cache[q_type - 1], p); 1601 + kmem_cache_free(queue_cache[q_type - 1], p); 1602 1602 } 1603 1603 1604 1604 static int queue_cache_init(void)