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

From: Dan Williams
Date: Tue Feb 16 2021 - 20:42:03 EST


On Fri, Feb 12, 2021 at 9:11 AM Uwe Kleine-König
<u.kleine-koenig@xxxxxxxxxxxxxx> 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.