[Intel-wired-lan] [PATCH 09/14] virtual-bus: fix return value for match function

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Thu May 28 19:43:37 UTC 2020


Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 drivers/bus/virtual_bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/virtual_bus.c b/drivers/bus/virtual_bus.c
index 2b0007932517..27db2d3463a3 100644
--- a/drivers/bus/virtual_bus.c
+++ b/drivers/bus/virtual_bus.c
@@ -37,7 +37,7 @@ static int virtbus_match(struct device *dev, struct device_driver *drv)
 	struct virtbus_driver *vdrv = to_virtbus_drv(drv);
 	struct virtbus_device *vdev = to_virtbus_dev(dev);
 
-	return virtbus_match_id(vdrv->id_table, vdev) != NULL;
+	return !!virtbus_match_id(vdrv->id_table, vdev);
 }
 
 static int virtbus_uevent(struct device *dev, struct kobj_uevent_env *env)
-- 
2.17.1



More information about the Intel-wired-lan mailing list