Re: [PATCH 2/2] libnvdimm: Make remove callback return void

2021-02-16 Thread Dan Williams
On Fri, Feb 12, 2021 at 9:21 AM Uwe Kleine-König wrote: > > All drivers return 0 in their remove callback and the driver core ignores > the return value of nvdimm_bus_remove() anyhow. So simplify by changing > the driver remove callback to return void and return 0 unconditionally > to the upper

[PATCH 2/2] libnvdimm: Make remove callback return void

2021-02-12 Thread Uwe Kleine-König
All drivers return 0 in their remove callback and the driver core ignores the return value of nvdimm_bus_remove() anyhow. So simplify by changing the driver remove callback to return void and return 0 unconditionally to the upper layer. Signed-off-by: Uwe Kleine-König ---