Re: [PATCH] RDMA/cxgb4: Delete an unnecessary check before kfree() in c4iw_rdev_open()
From: Leon Romanovsky
Date: Thu Jun 12 2025 - 04:42:43 EST
On Tue, 10 Jun 2025 14:20:17 +0200, Markus Elfring wrote:
> It can be known that the function “kfree” performs a null pointer check
> for its input parameter.
> It is therefore not needed to repeat such a check before its call.
>
> Thus remove a redundant pointer check.
>
> The source code was transformed by using the Coccinelle software.
>
> [...]
Applied, thanks!
[1/1] RDMA/cxgb4: Delete an unnecessary check before kfree() in c4iw_rdev_open()
https://git.kernel.org/rdma/rdma/c/fd383bf8b6954d
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>