From: Max Filippov <jcmvbkbc@gmail.com>
QEMU_STRACE and QEMU_RAND_SEED are handled by the parse_args, no need to
do it again in main.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20190906165736.5612-1-jcmvbkbc@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/main.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index 27d9a87bc83d..560d053f7249 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -706,13 +706,6 @@ int main(int argc, char **argv, char **envp)
reserved_va = max_reserved_va & qemu_host_page_mask;
}
- if (getenv("QEMU_STRACE")) {
- do_strace = 1;
- }
-
- if (seed_optarg == NULL) {
- seed_optarg = getenv("QEMU_RAND_SEED");
- }
{
Error *err = NULL;
if (seed_optarg != NULL) {
--
2.21.0