[PATCH] drm/amdgpu: Remove the redundant NULL check for the 'table' object

2025-04-02 Thread Ваторопин Андрей
From: Andrey Vatoropin Static analysis shows that pointer "table" cannot be NULL because it points to the object "struct amdgpu_cac_leakage_table". Remove the extra NULL check. It is meaningless and harms the readability of the code. Found by Linux Verification Center (linuxtesting.org) with S

[PATCH] drm/amdgpu: Remove the redundant NULL check for the 'dte_data' object

2025-03-25 Thread Ваторопин Андрей
From: Andrey Vatoropin Static analysis shows that pointer "dte_data" cannot be NULL because it points to the object "struct si_dte_data". Remove the extra NULL check. It is meaningless and harms the readability of the code. Found by Linux Verification Center (linuxtesting.org) with SVACE. Sig

Re: drm/amdgpu: remove the redundant null check

2019-09-13 Thread Alex Deucher
On Fri, Sep 6, 2019 at 3:01 AM zhong jiang wrote: > > On 2019/9/5 16:38, Markus Elfring wrote: > >>> Were any source code analysis tools involved for finding > >>> these update candidates? > >> With the help of Coccinelle. You can find out some example in > >> scripts/coccinelle/. > > Thanks for

Re: drm/amdgpu: remove the redundant null check

2019-09-06 Thread zhong jiang
On 2019/9/5 16:38, Markus Elfring wrote: >>> Were any source code analysis tools involved for finding >>> these update candidates? >> With the help of Coccinelle. You can find out some example in >> scripts/coccinelle/. > Thanks for such background information. > Was the script “ifnullfree.cocci”

Re: drm/amdgpu: remove the redundant null check

2019-09-06 Thread Markus Elfring
>> Were any source code analysis tools involved for finding >> these update candidates? > With the help of Coccinelle. You can find out some example in > scripts/coccinelle/. Thanks for such background information. Was the script “ifnullfree.cocci” applied here? Will it be helpful to add attribu