Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52872f52 authored by Geliang Tang's avatar Geliang Tang Committed by Herbert Xu
Browse files

crypto: drop unnecessary return statements



Fix checkpatch.pl warnings:

WARNING: void function return statements are not generally useful
FILE: crypto/rmd128.c:218:
FILE: crypto/rmd160.c:261:
FILE: crypto/rmd256.c:233:
FILE: crypto/rmd320.c:280:
FILE: crypto/tcrypt.c:385:
FILE: drivers/crypto/ixp4xx_crypto.c:538:
FILE: drivers/crypto/marvell/cesa.c:81:
FILE: drivers/crypto/ux500/cryp/cryp_core.c:1755:

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 06ec1f82
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -213,8 +213,6 @@ static void rmd128_transform(u32 *state, const __le32 *in)
	state[2] = state[3] + aa + bbb;
	state[3] = state[0] + bb + ccc;
	state[0] = ddd;

	return;
}

static int rmd128_init(struct shash_desc *desc)
+0 −2
Original line number Diff line number Diff line
@@ -256,8 +256,6 @@ static void rmd160_transform(u32 *state, const __le32 *in)
	state[3] = state[4] + aa + bbb;
	state[4] = state[0] + bb + ccc;
	state[0] = ddd;

	return;
}

static int rmd160_init(struct shash_desc *desc)
+0 −2
Original line number Diff line number Diff line
@@ -228,8 +228,6 @@ static void rmd256_transform(u32 *state, const __le32 *in)
	state[5] += bbb;
	state[6] += ccc;
	state[7] += ddd;

	return;
}

static int rmd256_init(struct shash_desc *desc)
+0 −2
Original line number Diff line number Diff line
@@ -275,8 +275,6 @@ static void rmd320_transform(u32 *state, const __le32 *in)
	state[7] += ccc;
	state[8] += ddd;
	state[9] += eee;

	return;
}

static int rmd320_init(struct shash_desc *desc)
+0 −1
Original line number Diff line number Diff line
@@ -381,7 +381,6 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs,
	testmgr_free_buf(xbuf);
out_noxbuf:
	kfree(iv);
	return;
}

static void test_hash_sg_init(struct scatterlist *sg)
Loading