From 995340074e554b4bf4a0fdb0cb7436692c5a4ffd Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 9 Aug 2022 14:35:15 +0200 Subject: tree-wide: use ASSERT_PTR more --- src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cryptsetup/cryptsetup-tokens') diff --git a/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c b/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c index 9e88c8cfc3..2e0450aa5b 100644 --- a/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c +++ b/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c @@ -36,13 +36,12 @@ static int luks2_pkcs11_callback( CK_TOKEN_INFO updated_token_info; int r; _cleanup_free_ char *token_label = NULL; - struct luks2_pkcs11_callback_data *data = userdata; + struct luks2_pkcs11_callback_data *data = ASSERT_PTR(userdata); assert(m); assert(slot_info); assert(token_info); assert(uri); - assert(data); token_label = pkcs11_token_label(token_info); if (!token_label) -- cgit v1.2.1