提交 abac12b5 编写于 作者: M Michal Privoznik

virSysinfoParseProcessor: Drop useless check for NULL

VIR_STRDUP plays nicely with NULLs. Theres no need to guard its
call with check for non-NULL.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 fa33c0b8
...@@ -315,8 +315,7 @@ virSysinfoParseProcessor(const char *base, virSysinfoDefPtr ret) ...@@ -315,8 +315,7 @@ virSysinfoParseProcessor(const char *base, virSysinfoDefPtr ret)
cur, eol - cur) < 0) cur, eol - cur) < 0)
goto error; goto error;
if (processor_type && if (VIR_STRDUP(processor->processor_type, processor_type) < 0)
VIR_STRDUP(processor->processor_type, processor_type) < 0)
goto error; goto error;
base = cur; base = cur;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册