mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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
|
||||
* is then fully set up
|
||||
*/
|
||||
if (cbdata) {
|
||||
virFDStreamSetInternalCloseCb(stream,
|
||||
virStorageVolFDStreamCloseCb,
|
||||
cbdata, NULL);
|
||||
cbdata = NULL;
|
||||
}
|
||||
virFDStreamSetInternalCloseCb(stream,
|
||||
virStorageVolFDStreamCloseCb,
|
||||
cbdata, NULL);
|
||||
cbdata = NULL;
|
||||
|
||||
cleanup:
|
||||
virStoragePoolObjUnlock(pool);
|
||||
|
Loading…
Reference in New Issue
Block a user