summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-05-22 15:49:43 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 12:04:11 +0800
commit8cec34fb07e740ce8843a25a6d126f93fa243287 (patch)
tree07d1f7d313afd53ec7762b65b543826115324d53 /crypto
parent77b9b48d9a052b999a361cab936290fdf76bce3f (diff)
downloadlinux-crypto-8cec34fb07e740ce8843a25a6d126f93fa243287.tar.gz
linux-crypto-8cec34fb07e740ce8843a25a6d126f93fa243287.zip
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')
-rw-r--r--crypto/rng.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/rng.c b/crypto/rng.c
index f46dac52..5e846924 100644
--- a/crypto/rng.c
+++ b/crypto/rng.c
@@ -33,11 +33,6 @@ struct crypto_rng *crypto_default_rng;
EXPORT_SYMBOL_GPL(crypto_default_rng);
static int crypto_default_rng_refcnt;
-static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm)
-{
- return container_of(tfm, struct crypto_rng, base);
-}
-
int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen)
{
u8 *buf = NULL;