From d148493083aa224d86b3af9699bcb06c727b4426 Mon Sep 17 00:00:00 2001 From: Li_Xin6 Date: Mon, 2 Dec 2024 14:01:20 +0800 Subject: [PATCH] [CP] Remove unnecessary null check in CreateBuffer null data is handled in next function call, no need check here. --- media_driver/linux/common/cp/ddi/media_ddi_prot.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/media_driver/linux/common/cp/ddi/media_ddi_prot.cpp b/media_driver/linux/common/cp/ddi/media_ddi_prot.cpp index 159af93d180..63d5f5219cd 100644 --- a/media_driver/linux/common/cp/ddi/media_ddi_prot.cpp +++ b/media_driver/linux/common/cp/ddi/media_ddi_prot.cpp @@ -240,7 +240,6 @@ VAStatus DdiMediaProtected::DdiMedia_ProtectedSessionCreateBuffer( DDI_FUNCTION_ENTER(); DDI_CHK_NULL(ctx, "nullptr ctx", VA_STATUS_ERROR_INVALID_CONTEXT); - DDI_CHK_NULL(data, "nullptr data", VA_STATUS_ERROR_INVALID_PARAMETER); DDI_CHK_NULL(bufId, "nullptr bufId", VA_STATUS_ERROR_INVALID_PARAMETER); VAStatus vaStatus = VA_STATUS_SUCCESS;