From 1cc52740160e6b6762b1fafcd3a9fc0e498e45d0 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Fri, 6 Sep 2019 09:57:36 -0700 Subject: linux-user: drop redundant handling of environment variables 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 Reviewed-by: Laurent Vivier Message-Id: <20190906165736.5612-1-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'linux-user/main.c') diff --git a/linux-user/main.c b/linux-user/main.c index 27d9a87bc8..560d053f72 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) { -- cgit v1.2.3