提交 8ea809df 编写于 作者: J John Ferlan

storage: Resolve Coverity UNUSED_VALUE

Since cd4d5475

Coverity notes that setting 'ret = -3' prior to the unconditional
setting of 'ret = 0' will cause the value to be UNUSED.

Since the comment indicates that it is expect to allow the code
to continue, just remove the ret = -3 setting.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 f72f0642
......@@ -128,7 +128,6 @@ virStorageBackendProbeTarget(virStorageSourcePtr target,
virReportError(VIR_ERR_INTERNAL_ERROR,
_("cannot probe backing volume format: %s"),
target->backingStore->path);
ret = -3;
} else {
target->backingStore->format = rc;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册