From nobody Mon Feb 9 21:36:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1614020353; cv=none; d=zohomail.com; s=zohoarc; b=foAQizKLwTqu8IWZlakdTU+NxZvIxovo2tGx6gDy60OniARRT5dpkKKSr8m4GgE4htl4ZY6hWzWnfLXK0Y2W1a0SfI9wyDUyMtr+DEcP3W36/j58EoGXnOwBhhDA+CLYr7uBzwYz3qQmH/Ilbjy8ylKHLxCwoVUGhHpKBpoYMIg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614020353; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8HPIbXBiY9U8K8vCWWacn2bteea3HW7keVpAJqtUmYg=; b=NP9iFglQ+q/qo47mIvUIdjocSljRMBy1EHAdS02CEJIFm/pZctPhxcCg9uQsSRRAn09JNbxytWvXL14oLhJSH15E1YmhZlj8Ae1XUzTHKHz2XmCCtNUFbaWZA9w0EMcpe7Khbr7dQDoA8m+tlS0Whot45s7ntOXyrapG2ryKNF8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1614020353209304.8941936890517; Mon, 22 Feb 2021 10:59:13 -0800 (PST) Received: from localhost ([::1]:47610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEGQK-0003gr-6C for importer@patchew.org; Mon, 22 Feb 2021 13:59:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEGFm-0004tT-TZ; Mon, 22 Feb 2021 13:48:18 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:50113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEGFa-0003i0-Pp; Mon, 22 Feb 2021 13:48:18 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 963715803BE; Mon, 22 Feb 2021 13:48:04 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 22 Feb 2021 13:48:04 -0500 Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 16CA7240068; Mon, 22 Feb 2021 13:48:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=8HPIbXBiY9U8K 8vCWWacn2bteea3HW7keVpAJqtUmYg=; b=CY1tcHM8mWNwNUdi+9wWzx/J4aT5x pWggfz3TqSVjRt6/BmtgmIb2LzFtJByFMg6BKEy6n4nico133ZXOx8SECfq/gqza R1UyN2ifUY+GBiqBe47fhW2Zc+2l/L237qXjyPqHedbPsLj5o+ww7kT/xYn4yk3h QNH7NC0qZCbSJLRCyV++m4KR/mQDITTWj30rZ2l2skJ5eD2Tlod8qGxc5gM3AGzL E8ihsO/3/z9KDlXI8fTPlK6JT9po2G1k0kWoZlDVClrAxNrTOKk8tGGI3aQ+afqC M87dHsOt/PvtDlAEd7YFwGgxiCDPkK/kah73nt/3X/bBObqQJ8207K/tQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=8HPIbXBiY9U8K8vCWWacn2bteea3HW7keVpAJqtUmYg=; b=hpt7clZB Uqo9zP+x/YvsRc0B9zW3PajvPz7HMfnIAe45CoTXh+E2yJClxC8c8X6BJ8pgfNuo R/2RhHaYFXIShAxc3KBBHF4ZuSYtd+CHgPbesxPg+hhEHssI1qeb7Ar7PNvfCHjj IEy2Q5DPhitxde3VHGVM3085/TQ791Y97kTcPMAjKa3IetD0tLlPgW2oe1pHzFWc uJGDiM2Rdlq1thSq21dHcIrAggHGLVMlpLIL2F2HhdtMnTiBlpXE1emm2edSLdd/ XiDZV7u73UGYNFHnqZcrHDd1a9n7yVw+EJW6C80tBU3zP15fvbsYsw6hitbUaFSK ocC6uxdDLYDtMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeefgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpeeuleetgeeiuefhgfekfefgveejiefgteekiedtgfdtieefhfdthfefueffvefg keenucfkphepkedtrdduieejrdelkedrudeltdenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehithhssehirhhrvghlvghvrghnthdrughk X-ME-Proxy: From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH v2 1/5] hw/block/nvme: remove unnecessary endian conversion Date: Mon, 22 Feb 2021 19:47:55 +0100 Message-Id: <20210222184759.65041-2-its@irrelevant.dk> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210222184759.65041-1-its@irrelevant.dk> References: <20210222184759.65041-1-its@irrelevant.dk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=66.111.4.230; envelope-from=its@irrelevant.dk; helo=new4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Fam Zheng , Kevin Wolf , qemu-block@nongnu.org, Klaus Jensen , Gollu Appalanaidu , Max Reitz , Klaus Jensen , Minwoo Im , Stefan Hajnoczi , Keith Busch Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Gollu Appalanaidu Remove an unnecessary le_to_cpu conversion in Identify. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen Reviewed-by: Minwoo Im --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 1cd82fa3c9fe..c0b349dfab0d 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -3415,7 +3415,7 @@ static uint16_t nvme_identify(NvmeCtrl *n, NvmeReques= t *req) { NvmeIdentify *c =3D (NvmeIdentify *)&req->cmd; =20 - switch (le32_to_cpu(c->cns)) { + switch (c->cns) { case NVME_ID_CNS_NS: /* fall through */ case NVME_ID_CNS_NS_PRESENT: --=20 2.30.1