Re: [PATCH] pcmcia: ds: Remove if with always false condition

2021-03-15 Thread Dominik Brodowski
Am Mon, Mar 01, 2021 at 06:38:47PM +0100 schrieb Uwe Kleine-König: > pcmcia_device_remove() is only ever called by the driver core with > dev->driver pointing to a valid driver. (And even if dev->driver was > NULL, p_drv wouldn't be NULL as p_drv is assigned as follows: > > p_drv = to_pcmcia

[PATCH] pcmcia: ds: Remove if with always false condition

2021-03-01 Thread Uwe Kleine-König
pcmcia_device_remove() is only ever called by the driver core with dev->driver pointing to a valid driver. (And even if dev->driver was NULL, p_drv wouldn't be NULL as p_drv is assigned as follows: p_drv = to_pcmcia_drv(dev->driver); and to_pcmcia_drv is a container_of operation on struct