storage: Fix coverity warning

After commit e808d3f227 cbdata is always available here, so the
check is pointless
This commit is contained in:
Cole Robinson 2016-06-23 18:40:00 -04:00
parent 428d2dfdb8
commit bdb868101b

View File

@ -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);