Fix svace issue 53/320653/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen/unified/20250305.160224 accepted/tizen/unified/x/20250306.020042
authorDariusz Michaluk <d.michaluk@samsung.com>
Wed, 5 Mar 2025 08:41:17 +0000 (09:41 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 5 Mar 2025 08:41:17 +0000 (09:41 +0100)
Change-Id: I5e5782eac609d83f0c76dc5c4e0e59fe633736d7

src/backend/hal_backend_security_certs_api.cpp

index 434a20aec379c78693289f8a17af016f5a7853f2..42af689453cb017c3bb69d5344302eab4127886b 100644 (file)
@@ -28,8 +28,6 @@ int security_certs_create_key_context(hal_security_certs_context_s* context,
        LOGD("Create backend context");
        try {
                context->ctx = new hal_backend_security_certs(key_type);
-               if (!context->ctx)
-                       return -EINVAL;
        } catch (std::invalid_argument&) {
                LOGE("Unsupported key type");
                return -ENODATA;