Re: [PATCH v2 1/2] mei: bus: simplify mei_cl_device_remove()

2021-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2021 at 08:37:04AM +0100, Uwe Kleine-König wrote: > The driver core only calls a bus' remove function when there is actually > a driver and a device. So drop the needless check and assign cldrv earlier. > > (Side note: The check for cldev being non-NULL is broken anyhow, because >

[PATCH v2 1/2] mei: bus: simplify mei_cl_device_remove()

2021-02-07 Thread Uwe Kleine-König
The driver core only calls a bus' remove function when there is actually a driver and a device. So drop the needless check and assign cldrv earlier. (Side note: The check for cldev being non-NULL is broken anyhow, because to_mei_cl_device() is a wrapper around container_of() for a member that is n