mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
storage: Fix coverity warning
After commit e808d3f227
cbdata is always available here, so the
check is pointless
This commit is contained in:
parent
428d2dfdb8
commit
bdb868101b
@ -2442,12 +2442,10 @@ storageVolUpload(virStorageVolPtr obj,
|
|||||||
/* Add cleanup callback - call after uploadVol since the stream
|
/* Add cleanup callback - call after uploadVol since the stream
|
||||||
* is then fully set up
|
* is then fully set up
|
||||||
*/
|
*/
|
||||||
if (cbdata) {
|
virFDStreamSetInternalCloseCb(stream,
|
||||||
virFDStreamSetInternalCloseCb(stream,
|
virStorageVolFDStreamCloseCb,
|
||||||
virStorageVolFDStreamCloseCb,
|
cbdata, NULL);
|
||||||
cbdata, NULL);
|
cbdata = NULL;
|
||||||
cbdata = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virStoragePoolObjUnlock(pool);
|
virStoragePoolObjUnlock(pool);
|
||||||
|
Loading…
Reference in New Issue
Block a user