]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
linux-user: drop redundant handling of environment variables
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 6 Sep 2019 16:57:36 +0000 (09:57 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 11 Sep 2019 06:47:06 +0000 (08:47 +0200)
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

index 27d9a87bc83d4048f8423ca0901b9314e0cbe2a7..560d053f7249d046107ae03bb101dd6ad7a69817 100644 (file)
@@ -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) {