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