Re: [PATCH 1/2] libnvdimm: simplify nvdimm_remove()

2021-02-16 Thread Dan Williams
On Fri, Feb 12, 2021 at 9:11 AM Uwe Kleine-König wrote: > > nvdimm_remove is only ever called after nvdimm_probe() returned > successfully. In this case driver data is always set to a non-NULL value > so the check for driver data being NULL can go away as it's always false. Looks good, thanks.

[PATCH 1/2] libnvdimm: simplify nvdimm_remove()

2021-02-12 Thread Uwe Kleine-König
nvdimm_remove is only ever called after nvdimm_probe() returned successfully. In this case driver data is always set to a non-NULL value so the check for driver data being NULL can go away as it's always false. Signed-off-by: Uwe Kleine-König --- drivers/nvdimm/dimm.c | 3 --- 1 file changed, 3