Commit 5945bdee authored by Manohar Vanga's avatar Manohar Vanga

simulation: removed uneccessary NULL check in wb_register_device

Signed-off-by: 's avatarManohar Vanga <manohar.vanga@cern.ch>
parent a81470cb
......@@ -155,11 +155,6 @@ int wb_register_device(struct wb_device *wbdev)
static atomic_t global_wb_devno = ATOMIC_INIT(0);
int devno;
if (!wbdev || !wbdev->bus) {
pr_err(KBUILD_MODNAME ": bus not set\n");
return -EFAULT;
}
devno = atomic_inc_return(&global_wb_devno);
wbdev->dev.bus = &wb_bus_type;
wbdev->dev.parent = &wb_dev_zero;
......
Markdown is supported
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