diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-05-22 18:49:43 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-06-10 00:04:11 -0400 |
commit | 1e6adff449c12b1ee92300af9436ea70461e9887 (patch) | |
tree | b9bb8d1d15fbfc8ea2ea000b7aac63021452931c /crypto/rng.c | |
parent | 284e76387c38260e834c99b010a68d75fc46b394 (diff) |
crypto: rng - Remove unused function __crypto_rng_cast()
This fixes the following warning when building with clang:
crypto/rng.c:35:34: error: unused function '__crypto_rng_cast'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/rng.c')
-rw-r--r-- | crypto/rng.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/rng.c b/crypto/rng.c index f46dac5288b9..5e8469244960 100644 --- a/crypto/rng.c +++ b/crypto/rng.c | |||
@@ -33,11 +33,6 @@ struct crypto_rng *crypto_default_rng; | |||
33 | EXPORT_SYMBOL_GPL(crypto_default_rng); | 33 | EXPORT_SYMBOL_GPL(crypto_default_rng); |
34 | static int crypto_default_rng_refcnt; | 34 | static int crypto_default_rng_refcnt; |
35 | 35 | ||
36 | static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) | ||
37 | { | ||
38 | return container_of(tfm, struct crypto_rng, base); | ||
39 | } | ||
40 | |||
41 | int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) | 36 | int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) |
42 | { | 37 | { |
43 | u8 *buf = NULL; | 38 | u8 *buf = NULL; |