mirror of https://gitee.com/openkylin/libvirt.git
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