Skip to content

Commit

Permalink
[VP] clean up remaining coverity issue
Browse files Browse the repository at this point in the history
clean up remaining coverity issue.
  • Loading branch information
VincentCheungKokomo authored and intel-mediadev committed Sep 11, 2023
1 parent 660e1d9 commit 186e0da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1448,10 +1448,10 @@ MOS_STATUS CompositeState::IntermediateAllocation(PVPHAL_SURFACE &pIntermediate,
// Get resource info (width, height, pitch, tiling, etc)
MOS_ZeroMemory(&Info, sizeof(VPHAL_GET_SURFACE_INFO));

VpHal_GetSurfaceInfo(
VPHAL_RENDER_CHK_STATUS_RETURN(VpHal_GetSurfaceInfo(
pOsInterface,
&Info,
pIntermediate);
pIntermediate));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ MOS_STATUS MHW_STATE_HEAP_INTERFACE_XE_HPG::AddInterfaceDescriptorData(

// need to subtract memory block's offset in current state heap for AddData API
offset -= pParams->memoryBlock->GetOffset();
MHW_MI_CHK_STATUS(pParams->memoryBlock->AddData(pInterfaceDescriptor, offset, sizeof(mhw_state_heap_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD)));
eStatus = pParams->memoryBlock->AddData(pInterfaceDescriptor, offset, sizeof(mhw_state_heap_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD));

MOS_SafeFreeMemory(pInterfaceDescriptor);

MHW_MI_CHK_STATUS(eStatus);
return eStatus;
}

Expand Down

0 comments on commit 186e0da

Please sign in to comment.