[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174971755850.3783297.3332209818695020969.b4-ty@kernel.org>
Date: Thu, 12 Jun 2025 04:39:18 -0400
From: Leon Romanovsky <leon@...nel.org>
To: linux-rdma@...r.kernel.org, Jason Gunthorpe <jgg@...pe.ca>,
Potnuri Bharat Teja <bharat@...lsio.com>,
Markus Elfring <Markus.Elfring@....de>
Cc: LKML <linux-kernel@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] RDMA/cxgb4: Delete an unnecessary check before kfree()
in c4iw_rdev_open()
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@...nel.org>
Powered by blists - more mailing lists