Re: drm/amdgpu: Delete an unnecessary check before two function calls
From: Markus Elfring
Date: Wed Sep 04 2019 - 13:12:12 EST
> The functions âdebugfs_removeâ and âkfreeâ test whether their argument
> is NULL and then return immediately.
> Thus the tests around the shown calls are not needed.
> This issue was detected by using the Coccinelle software.
I suggest to take another look at a similar patch.
drm/amdgpu: remove the redundant null check