mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
fa33c0b8af
commit
abac12b585
@ -315,8 +315,7 @@ virSysinfoParseProcessor(const char *base, virSysinfoDefPtr ret)
|
||||
cur, eol - cur) < 0)
|
||||
goto error;
|
||||
|
||||
if (processor_type &&
|
||||
VIR_STRDUP(processor->processor_type, processor_type) < 0)
|
||||
if (VIR_STRDUP(processor->processor_type, processor_type) < 0)
|
||||
goto error;
|
||||
|
||||
base = cur;
|
||||
|
Loading…
Reference in New Issue
Block a user