summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_wrappers.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-04-29 08:20:08 (GMT)
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 15:52:58 (GMT)
commit4b6ad6d4579908ff82a47ad9ba067a504b1e0882 (patch)
tree0b4c89f9e4d67aa3b815d7dd01d72f3d951fca6f /drivers/block/drbd/drbd_wrappers.h
parent5b614abe30645c3a528d54ff01da94fde0770c43 (diff)
downloadlinux-fsl-qoriq-4b6ad6d4579908ff82a47ad9ba067a504b1e0882.tar.xz
drbd: Remove obsolete drbd_crypto_is_hash()
We allocate hash transformations with crypto_alloc_hash() which will only return hash algorithms. It is not necessary to reconfirm that we actually got a hash algorithm. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_wrappers.h')
-rw-r--r--drivers/block/drbd/drbd_wrappers.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/block/drbd/drbd_wrappers.h b/drivers/block/drbd/drbd_wrappers.h
index decf9b2..46a6d99 100644
--- a/drivers/block/drbd/drbd_wrappers.h
+++ b/drivers/block/drbd/drbd_wrappers.h
@@ -45,12 +45,6 @@ static inline void drbd_generic_make_request(struct drbd_conf *mdev,
generic_make_request(bio);
}
-static inline int drbd_crypto_is_hash(struct crypto_tfm *tfm)
-{
- return (crypto_tfm_alg_type(tfm) & CRYPTO_ALG_TYPE_HASH_MASK)
- == CRYPTO_ALG_TYPE_HASH;
-}
-
#ifndef __CHECKER__
# undef __cond_lock
# define __cond_lock(x,c) (c)