Skip to content

Commit

Permalink
[~] Fix typos in NVDEC Engine Descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyDmitriy authored and mmaneetsingh committed May 13, 2022
1 parent eb960e2 commit 6414743
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/nvidia/src/kernel/gpu/nvdec/kernel_nvdec_engdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* This function returns an engine descriptor corresponding to the class
* and engine instance passed in.
*
* @params[in] externalClassId Id of classs being allocated
* @params[in] externalClassId Id of class being allocated
* @params[in] pAllocParams void pointer containing creation parameters.
*
* @returns
Expand All @@ -56,15 +56,15 @@ nvdecGetEngineDescFromAllocParams
{
CALL_CONTEXT *pCallContext = resservGetTlsCallContext();
NvU32 engineInstance = 0;
NV_BSP_ALLOCATION_PARAMETERS *pNvdecAllocParms = pAllocParams;
NV_BSP_ALLOCATION_PARAMETERS *pNvdecAllocParams = pAllocParams;

NV_ASSERT_OR_RETURN((pNvdecAllocParms != NULL), ENG_INVALID);
NV_ASSERT_OR_RETURN((pNvdecAllocParams != NULL), ENG_INVALID);

if (pNvdecAllocParms->size != sizeof(NV_BSP_ALLOCATION_PARAMETERS))
if (pNvdecAllocParams->size != sizeof(NV_BSP_ALLOCATION_PARAMETERS))
{
NV_PRINTF(LEVEL_ERROR, "createParams size mismatch (rm = 0x%x / client = 0x%x)\n",
(NvU32) sizeof(NV_BSP_ALLOCATION_PARAMETERS),
pNvdecAllocParms->size);
pNvdecAllocParams->size);
DBG_BREAKPOINT();
return ENG_INVALID;
}
Expand All @@ -82,7 +82,7 @@ nvdecGetEngineDescFromAllocParams
case NVC4B0_VIDEO_DECODER:
case NVC6B0_VIDEO_DECODER:
case NVC7B0_VIDEO_DECODER:
engineInstance = pNvdecAllocParms->engineInstance;
engineInstance = pNvdecAllocParams->engineInstance;
break;
default:
return ENG_INVALID;
Expand Down

0 comments on commit 6414743

Please sign in to comment.