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:
Zelenoviy
2022-12-17 08:59:00 +00:00
committed by Jérôme Duval
parent f34d1d77f9
commit 65f096fd08
@@ -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;