[PATCH 2/2] firmware: arm_ffa: Simplify probe function
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Jun 21 13:16:52 PDT 2021
When the driver core calls the probe callback it already checked that
the devices match, so there is no need to call the match callback again.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
drivers/firmware/arm_ffa/bus.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/firmware/arm_ffa/bus.c b/drivers/firmware/arm_ffa/bus.c
index d2cc24319626..00fe595a5bc8 100644
--- a/drivers/firmware/arm_ffa/bus.c
+++ b/drivers/firmware/arm_ffa/bus.c
@@ -46,9 +46,6 @@ static int ffa_device_probe(struct device *dev)
struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver);
struct ffa_device *ffa_dev = to_ffa_dev(dev);
- if (!ffa_device_match(dev, dev->driver))
- return -ENODEV;
-
return ffa_drv->probe(ffa_dev);
}
--
2.30.2
More information about the linux-arm-kernel
mailing list