]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c
tree-wide: use ASSERT_PTR more
[thirdparty/systemd.git] / src / cryptsetup / cryptsetup-tokens / luks2-pkcs11.c
index 9e88c8cfc3a59179a8a88935e2cce0371068dcbe..2e0450aa5bab0c2d9d1b17b3fb82fd2b70c72773 100644 (file)
@@ -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)