Blame SOURCES/cryptsetup-2.6.0-Code-cleanup.patch

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