[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ef57fbc1-8c67-c6ae-42b8-0de76df7cea3@web.de>
Date: Wed, 4 Sep 2019 19:11:33 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
Chunming Zhou <David1.Zhou@....com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Daniel Vetter <daniel@...ll.ch>,
David Airlie <airlied@...ux.ie>,
Hawking Zhang <Hawking.Zhang@....com>,
Jack Xiao <Jack.Xiao@....com>,
Kevin Wang <Kevin1.Wang@....com>,
Tom St Denis <tom.stdenis@....com>,
Wang Xiayang <xywang.sjtu@...u.edu.cn>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: drm/amdgpu: Delete an unnecessary check before two function calls
> 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
https://lkml.org/lkml/2019/9/3/59
https://lore.kernel.org/patchwork/patch/1123118/
https://lore.kernel.org/r/1567491305-18320-1-git-send-email-zhongjiang@huawei.com/
Regards,
Markus
Powered by blists - more mailing lists