mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 12:20:07 +00:00
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>
This commit is contained in:
parent
130ea8322b
commit
1cc5274016
@ -706,13 +706,6 @@ int main(int argc, char **argv, char **envp)
|
|||||||
reserved_va = max_reserved_va & qemu_host_page_mask;
|
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;
|
Error *err = NULL;
|
||||||
if (seed_optarg != NULL) {
|
if (seed_optarg != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user