From nobody Mon Feb 9 15:46:12 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=1615207899; cv=none; d=zohomail.com; s=zohoarc; b=T2LuyEV0b0U1yx8TZR5q6t+Nattpv23j6KBc96DQ72+iIikfNwOO/T2hVW+rWC4ZivzDuccGJnuTnf6AXdrVGHZ8GAqcbFRdNVP55i6MqBlvlCsc3v4snW4bJmGhzdg6wL4hrCT4ODg4Zc9VFAHf4Ml9LqzsbDuxROvAliKgquY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615207899; 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=ybdQTlPIH05zXQGY8Sm/wtWArTqiArT3S1Le07QE56Q=; b=CYV7W6XqsUlYIXwfeIUS9fjUWbJPsXBDsH1IVB8Hyepo0dyGVkEt9IHdN96bzJA7ixrLtivkdEg5PYcot85TlABDoLN7OPYaj0ZuC94SyabNHafj5v+/lNQPaoRdwc92ZTRIjf5GXtjyQbLJfIpYk+cUPUqH6NE2Zrgfgj7CKho= 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 161520789902676.59044796521994; Mon, 8 Mar 2021 04:51:39 -0800 (PST) Received: from localhost ([::1]:46796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJFMH-0001q4-SZ for importer@patchew.org; Mon, 08 Mar 2021 07:51:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEvU-0003Q7-0N; Mon, 08 Mar 2021 07:23:56 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:32891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEvP-00072K-P3; Mon, 08 Mar 2021 07:23:55 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 040A3FDB; Mon, 8 Mar 2021 07:23:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 08 Mar 2021 07:23:48 -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 076E21080059; Mon, 8 Mar 2021 07:23:45 -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=ybdQTlPIH05zX QGY8Sm/wtWArTqiArT3S1Le07QE56Q=; b=HNO0EKhLHsyH7GuCwuODGqOUJWh7p G4mfz9ti+DTRmby4xiiPJD9JnD8x5R9l/w7Dgj5ebYfGo7Vt3Dc5P4ciQCcxO3W9 7u5xCceQcuwXAAPAtl8Evd5XyUL80fYm1lrxe52hSSQmqb3mSleexpT3OuzdEqk0 XcWPdV6wXoo16IEh1R3YJqPCzXXHXH8I0dXNuI9lqxah2pQ3l34nz5fRQM9bWM0m 9RqtI97eCiQCCUrymJ2Yhp42K/hLKzith8lb1QAntyV+8ukbhlv68SIdlap85E7C Pssb1KUx65NimGkKiPd0pPuzJOPIWjCa8bh8jGvlOR5q2vqJoLzEUrFxw== 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=ybdQTlPIH05zXQGY8Sm/wtWArTqiArT3S1Le07QE56Q=; b=PDeVbpAz +YwYM8/Qcz5XWvBPfSW83zmW7lSRU4VHOlb+N5yzp5Z9MC+F9DvamN5GOB3Lzk3C wp6XVsR3GHL8IK7OcsEjpT5OIRVujQqywakn1P9RvYnzNzOelsR2uFxDk50gP1U1 1cSCweyhy7cuXSemuYr7//1Xb9HThCGezILI2kZaFyqV60ZvXdY9jOqdK1IicWKz t/rTTs04PUBfpSDjh41GBVXz3H066qfoFoGPgMCG8oI94HtfDXr0iSfe6b2Uvis8 6/5oX4AU3BW0Ox+WhYrvrytHKAmViYvUhKjD2HSzGQnaLtFiuKSoF3hLB1exGFx+ Mru7CTjT6ZT6bg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduvddgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpeeuleetgeeiuefhgfekfefgveejiefgteekiedtgfdtieefhfdthfefueffvefg keenucfkphepkedtrdduieejrdelkedrudeltdenucevlhhushhtvghrufhiiigvpeduie enucfrrghrrghmpehmrghilhhfrhhomhepihhtshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: From: Klaus Jensen To: Peter Maydell , qemu-devel@nongnu.org Subject: [PULL 20/38] hw/block/nvme: remove unnecessary endian conversion Date: Mon, 8 Mar 2021 13:22:55 +0100 Message-Id: <20210308122313.286938-21-its@irrelevant.dk> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308122313.286938-1-its@irrelevant.dk> References: <20210308122313.286938-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=64.147.123.18; envelope-from=its@irrelevant.dk; helo=wnew4-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 , Keith Busch , Minwoo Im , Stefan Hajnoczi , Klaus Jensen 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 01be8a1620be..ba07e6deef5f 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -3413,7 +3413,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