From nobody Mon Apr 29 19:37:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1567789147; cv=none; d=zoho.com; s=zohoarc; b=PlUTlG7YcrcGPTOduKVLBb4M2TV1Ho8ZFjiOLfkzT6E9rWZ69YGG1qDaUFxgDujPcFEVdsVc0FPTVcYLh4H0QGmkXLmcXW6WPAri78eddL68MiQxLS+hZSRxSqhX0Adce93vsBOnf5cXaSYvtVTIpP+YHUE6MGJ6xL+wHESHiPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567789147; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=VaJNiqW+quNrpETxN0MOfS47QXG0sgk28zKeOB7Wyig=; b=FnQo9/H+6VIpstSNTbOF8pwhLs7/uvrEeiYkb259EDH32BVh5cN0cx4t8D+lyxh9WcO0ShzCF2Lk/vY9uV5CEGMv5qJ5q4LjxVo2FwE+svGykufr7wVLlB9rlFhehXw7yDEDuNwC0cQr1W50oLhA322ytIyw2mnjU9qtwgNvp4E= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567789147390173.15596801254628; Fri, 6 Sep 2019 09:59:07 -0700 (PDT) Received: from localhost ([::1]:58782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6HZi-0004pE-9B for importer@patchew.org; Fri, 06 Sep 2019 12:59:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36884) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6HYX-0003uo-K9 for qemu-devel@nongnu.org; Fri, 06 Sep 2019 12:57:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6HYW-0000n9-O7 for qemu-devel@nongnu.org; Fri, 06 Sep 2019 12:57:53 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:38944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i6HYW-0000mN-HM for qemu-devel@nongnu.org; Fri, 06 Sep 2019 12:57:52 -0400 Received: by mail-lj1-x243.google.com with SMTP id j16so6653194ljg.6 for ; Fri, 06 Sep 2019 09:57:52 -0700 (PDT) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id g13sm1015296ljj.73.2019.09.06.09.57.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 09:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VaJNiqW+quNrpETxN0MOfS47QXG0sgk28zKeOB7Wyig=; b=RZNuEf+3kLV1Z5zzPhw9UyY094Lk8/GKog4MI2QL1bbvwgQHyYEWme+mDOVicFZ+1I zYfdALkLBlLZwYgjt8mlVpaSEtGlvIvuysf5GEq3EPemVTjuvbrzguhzZ+w9S6d5hVpD 20B4n6KapH4Tm2xZpu2Qqhj1WcyFk/S8hnahrGjRbwyyO12j9yaZWWttGsJdPTbS1Imt bgy68Hirq2xI7WOFAe2uFXc8fLQ16I0D92eWTljKhLt4nA5u8dAGVkwaMJvR9BlUQvNf 8arlE5ze/wGx0ig1DEC+QqZB+Mvmn5yHwY05EZSwouLcGlQy0sWrbDWZPI8S4FiXAfFL QjEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VaJNiqW+quNrpETxN0MOfS47QXG0sgk28zKeOB7Wyig=; b=iEunFQ6A7G1KpQopNy45AKxeg+C7QyY9vJcueV44X/Mk7LZlVkN1NpQe/lXeDrjvcc 7qE3evARngC6vUHtKyxefc0gvEzsrxNb63Ztl0POqjz6gQF/lK5mpXK82dOOPOS/iP5f IICm2wT/PAa4Bo7ucIuPJbxnveiON0OxN312NDNS0OQtOSy0PptZwWEOeGbsmU5FvB3w Sheu9am2w0NyPS/H63q4jAHJlHqWwxWCwv1h3yrBtlTpJY05laKgAjNTrxgP9K5IIylt uhB2MT5TOKVx17F+hEXKC+V+adwhQdxYC6OCHCY5NhysQ48bf9R7BvXBhVIogsN6ujR+ Nc8w== X-Gm-Message-State: APjAAAXbc9u8GfLWEa/4LzJL52xbz4ZVp0nHM/bMS5fsWI1xYYG2vziV E9i4+EhZsstkfkOx2E/kFBvRouQ0unI= X-Google-Smtp-Source: APXvYqwDbOD1ewCRn7i+Jewew/bde7VltKBdJCPsWwh083ZOrlnRJb0271Bnsc2H22b0DxZnIC4IgA== X-Received: by 2002:a2e:85d7:: with SMTP id h23mr6652554ljj.129.1567789071186; Fri, 06 Sep 2019 09:57:51 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Fri, 6 Sep 2019 09:57:36 -0700 Message-Id: <20190906165736.5612-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::243 Subject: [Qemu-devel] [PATCH] linux-user: drop redundant handling of environment variables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 --- linux-user/main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index c9d97d2b1fc6..22ae2b3e65d1 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -701,13 +701,6 @@ int main(int argc, char **argv, char **envp) =20 thread_cpu =3D cpu; =20 - if (getenv("QEMU_STRACE")) { - do_strace =3D 1; - } - - if (seed_optarg =3D=3D NULL) { - seed_optarg =3D getenv("QEMU_RAND_SEED"); - } { Error *err =3D NULL; if (seed_optarg !=3D NULL) { --=20 2.11.0