drm/amdgpu: use true, false for bool variable in amdgpu_psp.c
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:674:2-26: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:794:1-25: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:897:2-36: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1016:1-35: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1087:2-34: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1177:1-33: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -662,7 +662,7 @@ static int psp_ras_load(struct psp_context *psp)
|
|||||||
psp->fence_buf_mc_addr);
|
psp->fence_buf_mc_addr);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
psp->ras.ras_initialized = 1;
|
psp->ras.ras_initialized = true;
|
||||||
psp->ras.session_id = cmd->resp.session_id;
|
psp->ras.session_id = cmd->resp.session_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -782,7 +782,7 @@ static int psp_ras_terminate(struct psp_context *psp)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
psp->ras.ras_initialized = 0;
|
psp->ras.ras_initialized = false;
|
||||||
|
|
||||||
/* free ras shared memory */
|
/* free ras shared memory */
|
||||||
amdgpu_bo_free_kernel(&psp->ras.ras_shared_bo,
|
amdgpu_bo_free_kernel(&psp->ras.ras_shared_bo,
|
||||||
@@ -885,7 +885,7 @@ static int psp_hdcp_load(struct psp_context *psp)
|
|||||||
ret = psp_cmd_submit_buf(psp, NULL, cmd, psp->fence_buf_mc_addr);
|
ret = psp_cmd_submit_buf(psp, NULL, cmd, psp->fence_buf_mc_addr);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
psp->hdcp_context.hdcp_initialized = 1;
|
psp->hdcp_context.hdcp_initialized = true;
|
||||||
psp->hdcp_context.session_id = cmd->resp.session_id;
|
psp->hdcp_context.session_id = cmd->resp.session_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1004,7 +1004,7 @@ static int psp_hdcp_terminate(struct psp_context *psp)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
psp->hdcp_context.hdcp_initialized = 0;
|
psp->hdcp_context.hdcp_initialized = false;
|
||||||
|
|
||||||
/* free hdcp shared memory */
|
/* free hdcp shared memory */
|
||||||
amdgpu_bo_free_kernel(&psp->hdcp_context.hdcp_shared_bo,
|
amdgpu_bo_free_kernel(&psp->hdcp_context.hdcp_shared_bo,
|
||||||
@@ -1075,7 +1075,7 @@ static int psp_dtm_load(struct psp_context *psp)
|
|||||||
ret = psp_cmd_submit_buf(psp, NULL, cmd, psp->fence_buf_mc_addr);
|
ret = psp_cmd_submit_buf(psp, NULL, cmd, psp->fence_buf_mc_addr);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
psp->dtm_context.dtm_initialized = 1;
|
psp->dtm_context.dtm_initialized = true;
|
||||||
psp->dtm_context.session_id = cmd->resp.session_id;
|
psp->dtm_context.session_id = cmd->resp.session_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1165,7 +1165,7 @@ static int psp_dtm_terminate(struct psp_context *psp)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
psp->dtm_context.dtm_initialized = 0;
|
psp->dtm_context.dtm_initialized = false;
|
||||||
|
|
||||||
/* free hdcp shared memory */
|
/* free hdcp shared memory */
|
||||||
amdgpu_bo_free_kernel(&psp->dtm_context.dtm_shared_bo,
|
amdgpu_bo_free_kernel(&psp->dtm_context.dtm_shared_bo,
|
||||||
|
|||||||
Reference in New Issue
Block a user