]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
crypto: rng - Remove unused function __crypto_rng_cast()
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 22 May 2017 22:49:43 +0000 (15:49 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:11 +0000 (12:04 +0800)
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>
crypto/rng.c

index f46dac5288b9b0d5859bd017dcded5794ad2f01e..5e8469244960f85b52640fda18b561238ccdcce3 100644 (file)
@@ -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;