Staging: lustre: linux-crypto-adler: Drop wrapper function
authorShivani Bhardwaj <shivanib134@gmail.com>
Mon, 2 Nov 2015 17:25:36 +0000 (22:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Remove the function __adler32() and replace its calls with the function
it wrapped.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto-adler.c

index 5d8d8b79fa1f352c23c2b133ae7db144d47ecf11..db0572733712be2cee40647b17436beb544bdf5b 100644 (file)
 #define CHKSUM_BLOCK_SIZE      1
 #define CHKSUM_DIGEST_SIZE     4
 
-static u32 __adler32(u32 cksum, unsigned char const *p, size_t len)
-{
-       return zlib_adler32(cksum, p, len);
-}
-
 static int adler32_cra_init(struct crypto_tfm *tfm)
 {
        u32 *key = crypto_tfm_ctx(tfm);
@@ -79,14 +74,14 @@ static int adler32_update(struct shash_desc *desc, const u8 *data,
 {
        u32 *cksump = shash_desc_ctx(desc);
 
-       *cksump = __adler32(*cksump, data, len);
+       *cksump = zlib_adler32(*cksump, data, len);
        return 0;
 }
 
 static int __adler32_finup(u32 *cksump, const u8 *data, unsigned int len,
                           u8 *out)
 {
-       *(u32 *)out = __adler32(*cksump, data, len);
+       *(u32 *)out = zlib_adler32(*cksump, data, len);
        return 0;
 }
 
This page took 0.025444 seconds and 5 git commands to generate.