coccinelle: Remove unnecessary variables for function return value
[qemu/ar7.git] / tests / libqos / libqos-pc.c
blob72b5e3ba09beab71bea53d386ad8c2ebd7654361
1 #include "qemu/osdep.h"
2 #include "libqos/libqos-pc.h"
3 #include "libqos/malloc-pc.h"
5 static QOSOps qos_ops = {
6 .init_allocator = pc_alloc_init_flags,
7 .uninit_allocator = pc_alloc_uninit
8 };
10 QOSState *qtest_pc_vboot(const char *cmdline_fmt, va_list ap)
12 return qtest_vboot(&qos_ops, cmdline_fmt, ap);
15 QOSState *qtest_pc_boot(const char *cmdline_fmt, ...)
17 QOSState *qs;
18 va_list ap;
20 va_start(ap, cmdline_fmt);
21 qs = qtest_vboot(&qos_ops, cmdline_fmt, ap);
22 va_end(ap);
24 return qs;
27 void qtest_pc_shutdown(QOSState *qs)
29 return qtest_shutdown(qs);