Re: [PATCH] drm/msm/dpu: remove unused variable cmd_enc

2021-05-26 Thread Austin Kim
2021년 5월 21일 (금) 오후 1:16, Austin Kim 님이 작성: > > After the call to to_dpu_encoder_phys_cmd() is made, > 'cmd_enc' is not used. Where to_dpu_encoder_phys_cmd() is simply replaced with > container_of(x, struct dpu_encoder_phys_cmd, base) by compiler. > > So it had be

[PATCH] drm/msm/dpu: remove unused variable cmd_enc

2021-05-20 Thread Austin Kim
/disp/dpu1/dpu_encoder_phys_cmd.c: In function ‘dpu_encoder_phys_cmd_wait_for_commit_done’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable ‘cmd_enc’ set but not used Signed-off-by: Austin Kim --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 4 1 file changed, 4

[PATCH] drm/amdgpu: Drop unused variable and statement

2019-10-02 Thread Austin Kim
variable ‘smu8_smu’ set but not used [-Wunused-but-set-variable] struct smu8_smumgr *smu8_smu; ^ Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smum

[PATCH] drm/amd/display: Fix compile error due to 'endif' missing

2019-09-16 Thread Austin Kim
target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2 scripts/Makefile.modbuiltin:55: recipe for target 'drivers/gpu' failed make[1]: *** [drivers/gpu] Error 2 make[1]: *** Waiting for unfinished jobs Add 'endif' to Makefile to stop compile error

[PATCH] drm/amd/powerplay: Remove unnecessary comparison statement

2019-09-09 Thread Austin Kim
size contain non-negative value since it is declared as uint32_t. So below statement is always false. if (size < 0) Remove unnecessary comparison. Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/

[PATCH] drm/amdgpu: Move null pointer dereference check

2019-09-02 Thread Austin Kim
Null pointer dereference check should have been checked, ahead of below routine. struct amdgpu_device *adev = hwmgr->adev; With this commit, it could avoid potential NULL dereference. Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 5 +++-- 1 f