USB: node unregistering returning B_BUSY is not a error in this case
Change-Id: Id9a1eccd47daef490d5ab2cba46ea97386ea0a89 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5870 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -339,7 +339,8 @@ Device::~Device()
|
||||
// though, since we may be deleted because the device was unplugged already.
|
||||
Unconfigure(false);
|
||||
|
||||
if (gDeviceManager->unregister_node(fNode) != B_OK)
|
||||
status_t error = gDeviceManager->unregister_node(fNode);
|
||||
if (error != B_OK && error != B_BUSY)
|
||||
TRACE_ERROR("failed to unregister device node\n");
|
||||
fNode = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user