[PATCH] crc-t10dif: Replace string names with CRC_T10DIF_STRING

From: Yunfeng Ye
Date: Mon Apr 20 2020 - 07:24:21 EST


The commit b76377543b73 ("crc-t10dif: Pick better transform if one becomes
available") add the macro CRC_T10DIF_STRING, so it's better to use
CRC_T10DIF_STRING instead of the "crct10dif" names.

Signed-off-by: Yunfeng Ye <yeyunfeng@xxxxxxxxxx>
---
lib/crc-t10dif.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/crc-t10dif.c b/lib/crc-t10dif.c
index 8cc01a603416..87a081f7e662 100644
--- a/lib/crc-t10dif.c
+++ b/lib/crc-t10dif.c
@@ -37,7 +37,7 @@ static int crc_t10dif_rehash(struct notifier_block *self, unsigned long val, voi
mutex_unlock(&crc_t10dif_mutex);
return 0;
}
- new = crypto_alloc_shash("crct10dif", 0, 0);
+ new = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
if (IS_ERR(new)) {
mutex_unlock(&crc_t10dif_mutex);
return 0;
@@ -87,7 +87,7 @@ __u16 crc_t10dif(const unsigned char *buffer, size_t len)
static int __init crc_t10dif_mod_init(void)
{
crypto_register_notifier(&crc_t10dif_nb);
- crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0);
+ crct10dif_tfm = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
if (IS_ERR(crct10dif_tfm)) {
static_key_slow_inc(&crct10dif_fallback);
crct10dif_tfm = NULL;
--
1.8.3.1