提交 bdb86810 编写于 作者: C Cole Robinson

storage: Fix coverity warning

After commit e808d3f2 cbdata is always available here, so the
check is pointless
上级 428d2dfd
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册