tools/libxc: Drop xc_cpuid_to_str()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Jun 2018 12:35:08 +0000 (12:35 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Jul 2018 17:04:21 +0000 (18:04 +0100)
commitd9e0cb858ebbb1003d926963d2d5e77ab30697ca
tree596f124d130c8156bafb69592e7a67cda6da217c
parentef765ec9879ad0c7d9fe6cd8a5bb584056f3fea1
tools/libxc: Drop xc_cpuid_to_str()

This helper appears to have been introduced 10 years ago by c/s 5f14a87ceb
"x86, hvm: Guest CPUID configuration" and never had any users at all.

alloc_str() is actually an opencoded calloc(), and now only has a single
caller.  Use calloc() directly and drop alloc_str().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_cpuid_x86.c