aboutsummaryrefslogtreecommitdiff
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-09-06 09:57:36 -0700
committerLaurent Vivier <laurent@vivier.eu>2019-09-11 08:47:06 +0200
commit1cc52740160e6b6762b1fafcd3a9fc0e498e45d0 (patch)
tree08e0493669e77e2fa378aac21394b34bf0a7672c /linux-user/main.c
parent130ea8322bd01b27095079632f1946d9a2120870 (diff)
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 <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>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c7
1 files changed, 0 insertions, 7 deletions
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) {