Re: [PATCH] nvdimm: ndtest: remove redundant NULL check before vfree()

From: Alison Schofield

Date: Tue Jul 14 2026 - 20:01:53 EST


On Fri, Jul 03, 2026 at 07:25:13PM +0530, mdshahid03@xxxxxxxxx wrote:
> From: Mohammad Shahid <mdshahid03@xxxxxxxxx>
>
> vfree() safely handles NULL pointers, so the explicit NULL check
> before calling vfree() is unnecessary.
>
> This issue was reported by ifnullfree.cocci.
>
> Signed-off-by: Mohammad Shahid <mdshahid03@xxxxxxxxx>

Applied to libnvdimm-for-next:
https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/