mips: sgi-ip22: Drop redundant check from .remove()

The remove callback is only called by the driver core if there is a
driver to unbind, so there is no need to check dev->driver to be
non-NULL.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Uwe Kleine-König 2022-06-18 22:40:37 +02:00 committed by Thomas Bogendoerfer
parent 7dbdf04d6b
commit 3bc5342c2e

View File

@ -148,7 +148,7 @@ static void gio_device_remove(struct device *dev)
struct gio_device *gio_dev = to_gio_device(dev);
struct gio_driver *drv = to_gio_driver(dev->driver);
if (dev->driver && drv->remove)
if (drv->remove)
drv->remove(gio_dev);
}