Skip to content

Commit

Permalink
[VP] Fix coverity low impact issue
Browse files Browse the repository at this point in the history
Fix coverity low impact issue.
  • Loading branch information
VincentCheungKokomo authored and intel-mediadev committed Dec 14, 2023
1 parent 23eb02c commit faa5cc3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion media_driver/agnostic/common/os/mos_graphicsresource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ MOS_STATUS GraphicsResource::Dump(OsContext* osContextPtr, uint32_t overrideOffs
nullptr)) != MOS_STATUS_SUCCESS)
{
MOS_OS_ASSERTMESSAGE("Failed to write to file '%s'.", sPath);
eStatus = MOS_STATUS_FILE_WRITE_FAILED;
if (hFile != nullptr)
{
MosUtilities::MosCloseHandle(hFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ MOS_STATUS MosUtilities::MosWriteOneUserFeatureGroupToXML(MOS_USER_FEATURE_VALUE
sOutBuf,
sizeof(sOutBuf),
sizeof(sOutBuf),
" </Group>\n",
UserFeatureFilter.pcGroup);
" </Group>\n");
eStatus = MosAppendFileFromPtr(
s_xmlFilePath,
sOutBuf,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ MOS_STATUS VPHAL_VEBOX_STATE_G12_BASE::AllocateResources()
InitValue = 0;
// change the init value when null hw is enabled
VPHAL_RENDER_CHK_NULL(pOsInterface);
VPHAL_RENDER_CHK_NULL(pRenderData);

if (pOsInterface->bNullHwIsEnabled)
{
Expand Down

0 comments on commit faa5cc3

Please sign in to comment.