Re: [PATCH] nvdimm: nfit: remove redundant NULL check before vfree()
Alison Schofield <[email protected]> Tue, 14 Jul 2026 17:01:00 -0700
| Newsgroups | dev.linux.lists.nvdimm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jul 03, 2026 at 08:18:51PM +0530, [email protected] wrote: > From: Mohammad Shahid <[email protected]> > > 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 <[email protected]> Applied to libnvdimm-for-next: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/