From nobody Thu Jan 30 23:07:04 2025 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A87D11D5AA5 for ; Fri, 24 Jan 2025 01:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737683929; cv=none; b=gNJ5RoQ/qNxKZ8lRpVPVLOg/aqEcmro29xH2dJoIIIEMDSlrPhxkU4PQ3JlEnFfBEZX3JkOxKjxWLndf4N4wf9q8QsRaVgLqPZ6bSuEmBD5J3iZySS7Ep4/zgE4CJs2mku35RNp8wP7qDJV4RNF/NX5xq6CYmWZV7mDZDoF7QRw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737683929; c=relaxed/simple; bh=mlls54bce+0lvfNSi96vEZ6jU4CJvOJNuNga3KxcE+A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SIW2P4cVnWSHEhTgLpf57lu6XlqhKFykbqRIe1AYhrfp8ttGzoeJXbavTaCXS7ZpXhTQ0Z2ZqCqPpexLP82I7juWGERWVfhrZRbn/oMKn7oz/ZxMf/Taw4pu2hzY6pO8ExHvaqWRQp0lOSPe5ndAlVr8HmCiUux908I6F+xJ3uE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org; spf=pass smtp.mailfrom=joelfernandes.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b=YOwDyFgU; arc=none smtp.client-ip=209.85.222.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="YOwDyFgU" Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-7b6ef047e9bso154110885a.1 for ; Thu, 23 Jan 2025 17:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1737683926; x=1738288726; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qaQdwk1K6JMmpEpTCCMueooCLhtDXZocXZ+0dVMaVq8=; b=YOwDyFgUkwUyUl7OAe8ejSuXAMFVvQ5NSXSJN0jOvTDHjVmxxX0cISRJMYJRgOOjiJ G5k/PxzFQtJkkzvU8Yb6AROkcowPdlHMq8AlmUmHWwZFjhW1YcR6NDyoV1Zre5+KLaQz j70Z0HQzByW3gGiy+XB6L4TwopPb+X0VDBBRQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737683926; x=1738288726; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qaQdwk1K6JMmpEpTCCMueooCLhtDXZocXZ+0dVMaVq8=; b=ARTYtfHW554ShMBOi+tUnneWvGmrknsYPbxE+eyiH4cSO0JQ8yvO0rntF9FdSGfRdo dgT2k7ggkNpIgcKY34uZR/PbTuRW4wGIK3RY7AKtJ0Vysn8u397oabP+lqwtOKXztdOg 5kdsIj4NR9aXo2sY3MF3wtnI3JpFL7zsidRoy5IH2neue+LiT5nnQPhmiyLfFwooRzh4 ZP4ZUWBSoxCIIrLoQp1M/tUlJSFNCTJDX4pww0je3lzjBDvM+4CV6mgaWASWBiF3cRIA kCw/X7CEyQHnn7z136qi7TrNRzkrD3PUoOwNVGW6achJcDFaAJ6kPOfRtBdiy2aSouMn d5eQ== X-Gm-Message-State: AOJu0YyRFmS7I5NpDy1NQBIsp5bHlohwtZOw7ocJuOlzq7Wb/ZW5AgUO CmdWc0GwdinwVmiFm6aekjqZzVcg4u2TA5eHd/6+7EnfqntSPJsZquKytc5wvPxePaEeQdZUhFv r X-Gm-Gg: ASbGncsPIwzpFQrGg7Dqo/ZJYJf6ykJdlCrDTlj8t4bHHfn9eKPRmlWgmFNLQtOo2Ft 6ML6yg2phNbrxNQyl9loEO7Ls+JFkCygMCpasTEAq9o3vfQyB0jfPqD8+iK0HUQ4ihy2Idl/Q6I ksHNG+nDuyzMQsmRHT/AEgzCOCnaZnELS7d557sSa52ah9rx549pkgNKd+Cy7BiGGt8gjBO+Et5 MuUDvnYNDrvqOaajPdVkxzE0m+76L2gIKAQ6BWgGFIbxC3HPQvXmgDZKfE9xClwsuvx6S41OgIN 4PGpxbJrWO/05h5LlumjGa1vRdH5kfKb4sh0cvDcCUese78= X-Google-Smtp-Source: AGHT+IGedeLyH46JZ6ICjRhHLoRnczUEGAXR32xcGpowOpwEm6uqWspuRRdZr/IOKsIKbb8aqDrT3A== X-Received: by 2002:a05:620a:278e:b0:7be:73f6:9e86 with SMTP id af79cd13be357-7be9af69755mr301087285a.20.1737683926278; Thu, 23 Jan 2025 17:58:46 -0800 (PST) Received: from joelbox2.. (c-73-251-172-144.hsd1.va.comcast.net. [73.251.172.144]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7be9ae8a5fbsm44741985a.31.2025.01.23.17.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 17:58:45 -0800 (PST) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org, "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Shuah Khan Cc: "Joel Fernandes (Google)" , rcu@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH RFC 1/5] rcutorture: kvm: Simplify invocation of mkinitrd.sh Date: Thu, 23 Jan 2025 20:58:32 -0500 Message-Id: <20250124015836.732086-2-joel@joelfernandes.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250124015836.732086-1-joel@joelfernandes.org> References: <20250124015836.732086-1-joel@joelfernandes.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The else block is unnecessary and we can simply clarify the if condition to remove the else clause. It is more readable. Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/rcutorture/bin/kvm.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/= selftests/rcutorture/bin/kvm.sh index 42e5e8597a1a..4766c3023fed 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -275,10 +275,7 @@ do shift done =20 -if test -n "$dryrun" || test -z "$TORTURE_INITRD" || tools/testing/selftes= ts/rcutorture/bin/mkinitrd.sh -then - : -else +if test -z "$dryrun" && test -n "$TORTURE_INITRD" && !tools/testing/selfte= sts/rcutorture/bin/mkinitrd.sh echo No initrd and unable to create one, aborting test >&2 exit 1 fi --=20 2.34.1