Skip to content
Snippets Groups Projects
Commit 41f7d508 authored by Manohar Vanga's avatar Manohar Vanga
Browse files

simulation: cleaned code path in wb_bus_match


Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
parent f191033f
Branches
Tags
No related merge requests found
......@@ -348,12 +348,13 @@ static int wb_bus_match(struct device *dev, struct device_driver *drv)
wb_drv = to_wb_driver(drv);
found = wb_match_device(wb_drv, wb_dev);
if (found) {
/* set this so we can access it later */
wb_dev->driver = wb_drv;
return 1;
}
return 0;
if (!found)
return 0;
/* set this so we can access it later */
wb_dev->driver = wb_drv;
return 1;
}
static int wb_bus_probe(struct device *dev)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment