diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2009-12-28 16:58:38 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2009-12-29 17:35:27 +0100 |
commit | 0798219f6154baa6a8efe767bfffb4a724e4b1e1 (patch) | |
tree | a712fd9e52c597458c888430544125ab3c975fe7 /drivers/block | |
parent | block: Honor the gfp_mask for alloc_page() in blkdev_issue_discard() (diff) | |
download | linux-0798219f6154baa6a8efe767bfffb4a724e4b1e1.tar.xz linux-0798219f6154baa6a8efe767bfffb4a724e4b1e1.zip |
drbd: Use drbd_crypto_is_hash() instead of an open coded check
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index 4e0726aa53b0..3313901a4861 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -1271,7 +1271,7 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp, goto fail; } - if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) != CRYPTO_ALG_TYPE_SHASH) { + if (!drbd_crypto_is_hash(crypto_hash_tfm(tfm))) { retcode = ERR_AUTH_ALG_ND; goto fail; } |