Re: drm/amdgpu: Delete an unnecessary check before two function calls

2019-09-05 Thread Markus Elfring
> 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: remo

[PATCH] drm/amdgpu: Delete an unnecessary check before two function calls

2019-09-05 Thread Markus Elfring
From: Markus Elfring Date: Wed, 4 Sep 2019 12:30:23 +0200 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. Signed-off-by: Ma