Commit dd190e23 authored by Patrick Mochel's avatar Patrick Mochel

[driver model] Remove unneeded error check.

From Daniele Belucci. 
parent 41b06af4
......@@ -459,10 +459,6 @@ int bus_add_driver(struct device_driver * drv)
driver_attach(drv);
up_write(&bus->subsys.rwsem);
if (error) {
kobject_unregister(&drv->kobj);
put_bus(bus);
}
}
return error;
}
......
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