mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-08-24 09:49:59 +03:00
test: Remove unnecessary unlocks in cleanup paths
Commit id '865f479da' altered the logic to use a common test*ObjFindByName helpers which would lock/unlock the test driver; however, a few cleanup paths in that cleanup missed removing the Unlock, so remove it now. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
@ -3931,7 +3931,6 @@ testInterfaceUndefine(virInterfacePtr iface)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
testDriverUnlock(privconn);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3960,7 +3959,6 @@ testInterfaceCreate(virInterfacePtr iface,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (privinterface)
|
if (privinterface)
|
||||||
virInterfaceObjUnlock(privinterface);
|
virInterfaceObjUnlock(privinterface);
|
||||||
testDriverUnlock(privconn);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3989,7 +3987,6 @@ testInterfaceDestroy(virInterfacePtr iface,
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (privinterface)
|
if (privinterface)
|
||||||
virInterfaceObjUnlock(privinterface);
|
virInterfaceObjUnlock(privinterface);
|
||||||
testDriverUnlock(privconn);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4480,7 +4477,6 @@ testStoragePoolUndefine(virStoragePoolPtr pool)
|
|||||||
if (privpool)
|
if (privpool)
|
||||||
virStoragePoolObjUnlock(privpool);
|
virStoragePoolObjUnlock(privpool);
|
||||||
testObjectEventQueue(privconn, event);
|
testObjectEventQueue(privconn, event);
|
||||||
testDriverUnlock(privconn);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4591,7 +4587,6 @@ testStoragePoolDestroy(virStoragePoolPtr pool)
|
|||||||
testObjectEventQueue(privconn, event);
|
testObjectEventQueue(privconn, event);
|
||||||
if (privpool)
|
if (privpool)
|
||||||
virStoragePoolObjUnlock(privpool);
|
virStoragePoolObjUnlock(privpool);
|
||||||
testDriverUnlock(privconn);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user