diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-18 22:40:37 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2022-07-05 11:10:17 +0200 |
commit | 3bc5342c2e4aa07769ff4e5f6614ebb3a001fb55 (patch) | |
tree | a5088a71ce2dcf3f3323db250bb25b42f456208e /arch/mips | |
parent | MAINTAINERS: add include/dt-bindings/mips to MIPS (diff) | |
download | linux-3bc5342c2e4aa07769ff4e5f6614ebb3a001fb55.tar.xz linux-3bc5342c2e4aa07769ff4e5f6614ebb3a001fb55.zip |
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-gio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index 38d12f417e48..8686e8c1c4e5 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c @@ -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); } |