c31bd2
From 23903951505cd4ad9f3469e037278494c14a7791 Mon Sep 17 00:00:00 2001
c31bd2
From: Ondrej Kozina <okozina@redhat.com>
c31bd2
Date: Wed, 12 Oct 2022 12:05:00 +0200
c31bd2
Subject: [PATCH 3/5] Code cleanup.
c31bd2
c31bd2
Type cast is not needed here.
c31bd2
---
c31bd2
 lib/libdevmapper.c | 4 +---
c31bd2
 1 file changed, 1 insertion(+), 3 deletions(-)
c31bd2
c31bd2
diff --git a/lib/libdevmapper.c b/lib/libdevmapper.c
c31bd2
index 7fcf843f..6a239e14 100644
c31bd2
--- a/lib/libdevmapper.c
c31bd2
+++ b/lib/libdevmapper.c
c31bd2
@@ -1992,9 +1992,7 @@ static int _dm_target_query_crypt(struct crypt_device *cd, uint32_t get_flags,
c31bd2
 
c31bd2
 	/* cipher */
c31bd2
 	if (get_flags & DM_ACTIVE_CRYPT_CIPHER) {
c31bd2
-		r = crypt_capi_to_cipher(CONST_CAST(char**)&cipher,
c31bd2
-				CONST_CAST(char**)&integrity,
c31bd2
-				rcipher, rintegrity);
c31bd2
+		r = crypt_capi_to_cipher(&cipher, &integrity, rcipher, rintegrity);
c31bd2
 		if (r < 0)
c31bd2
 			goto err;
c31bd2
 	}
c31bd2
-- 
c31bd2
2.38.1
c31bd2