Skip to content

Commit

Permalink
[CP] Remove unnecessary null check in CreateBuffer
Browse files Browse the repository at this point in the history
null data is handled in next function call, no need check here.
  • Loading branch information
lixin5x authored and intel-mediadev committed Dec 2, 2024
1 parent 8b32cc8 commit d148493
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion media_driver/linux/common/cp/ddi/media_ddi_prot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d148493

Please sign in to comment.