aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_wrappers.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-04-29 10:20:08 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:52:58 +0100
commit4b6ad6d4579908ff82a47ad9ba067a504b1e0882 (patch)
tree0b4c89f9e4d67aa3b815d7dd01d72f3d951fca6f /drivers/block/drbd/drbd_wrappers.h
parent5b614abe30645c3a528d54ff01da94fde0770c43 (diff)
downloadkernel_goldelico_gta04-4b6ad6d4579908ff82a47ad9ba067a504b1e0882.zip
kernel_goldelico_gta04-4b6ad6d4579908ff82a47ad9ba067a504b1e0882.tar.gz
kernel_goldelico_gta04-4b6ad6d4579908ff82a47ad9ba067a504b1e0882.tar.bz2
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)