From nobody Tue Feb 10 00:58:00 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=1612859460; cv=none; d=zohomail.com; s=zohoarc; b=Ge/TSyfl2iXt6DEFU5TzpDt92kKMfX5paQwxBSHtmIz0Zl4trOduRHNybb4AaDBQ3cLCEKQ89PpZUG/sh/cXh3LiCU8B1F0ywGBsRLvFzHNYvsLdOuLlctnxJplNJJCrBH57ragl7VhKJV/J3fVLsVN4aoXV9MNK85ZpsklSjUM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612859460; 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=RFEec4Wljni8pG2EOZAGtoFYeS9ZZ/53q25lmNyipYQ=; b=J90e1RMUm9fCMYpXw0c0BRveabBF2xFReKtMQHXfI0ytwgC2edUeVIY5ko5q9KR/BMoC0GzayfqnLmJW8PdEzeo5WB2sn2/8FRqjCf9ECUwqQG/hLzQmVQ66U282QH8y1cRxBdpvAxzvtUbmDev5NNtfMY6fc4Gj7Cs2OLX2VBM= 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 1612859459899474.2423058050739; Tue, 9 Feb 2021 00:30:59 -0800 (PST) Received: from localhost ([::1]:37878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9OQA-0002ew-H6 for importer@patchew.org; Tue, 09 Feb 2021 03:30:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9NVy-0005SS-3w; Tue, 09 Feb 2021 02:32:50 -0500 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:40365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9NVn-0005nu-6v; Tue, 09 Feb 2021 02:32:49 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 27F10B1E; Tue, 9 Feb 2021 02:32:05 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 09 Feb 2021 02:32:05 -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 4A7EA1080057; Tue, 9 Feb 2021 02:32:03 -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=RFEec4Wljni8p G2EOZAGtoFYeS9ZZ/53q25lmNyipYQ=; b=rG51/4YujYYP/e8WkFIjrZUirY7Nr HVIFuo8o5kY2rL5WrAeaz2HJPFIcD8pO527o8HjQrJ1LRvCM9/S1nNXY+vSkdbLz TZIn6BNXp3ZCCMaM4xV8AZgb1KG8NLMYmMbpnL9XX5FDJEBp0AiP2wfsVunL414q iKvlr6zpa4QpDQTpfuA+mUKpIHhZgj+WeJ9Z3+RyBEfZsRX+GLDAL1N3TtCZHkLu a1zAo+FMEm69Iz19HJv+O7t2m6uxrpEFAm3ZTOT8s+VFu2QmucIjT5UeO/a9wVf9 D+CITqSX4xQ1MQv8ZbNhPut/G6jmRM4MGbUv1d05FKW1beZgn3HGHTphA== 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=RFEec4Wljni8pG2EOZAGtoFYeS9ZZ/53q25lmNyipYQ=; b=mkxInHr7 1tvRdArqgyAnQLJSkSc8ctFVL0oRxnpcway49xmgdny51749U9MnD88qvrhrujnx HoGTpyBWDdvOGGAJYh6hq9xE+rLHKk5OE8yCnL9sU0TaptgAwbFJLjV6Zf/8H1jL R7HR38cND7m/4j9DdO4lmWnKESKS+/DYJd22IHl8ZL/yV02xYdZ/fptho9qAT2gH AtAoSdLFJc1iId6ckSkWsgndPHJlFmlT9U2wNBLT8zmjE4eGvWdxcRek/W47Uf4d 1pMJBinXUR522FdcOYaBfJQmf/qf4WrHsvk3+WKkzAzZsS+HehBR3+vIF8URmHI4 3a9BzlCUejNv7g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheeggdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpeeuleetgeeiuefhgfekfefgveejiefgteekiedtgfdtieefhfdthfefueffvefg keenucfkphepkedtrdduieejrdelkedrudeltdenucevlhhushhtvghrufhiiigvpedvne curfgrrhgrmhepmhgrihhlfhhrohhmpehithhssehirhhrvghlvghvrghnthdrughk X-ME-Proxy: From: Klaus Jensen To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 27/56] hw/block/nvme: remove unnecessary check for append Date: Tue, 9 Feb 2021 08:30:32 +0100 Message-Id: <20210209073101.548811-28-its@irrelevant.dk> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210209073101.548811-1-its@irrelevant.dk> References: <20210209073101.548811-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.26; envelope-from=its@irrelevant.dk; helo=wnew1-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, Dmitry Fomichev , Klaus Jensen , Max Reitz , Klaus Jensen , 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: Klaus Jensen nvme_io_cmd already checks if the namespace supports the Zone Append command, so the removed check is dead code. Signed-off-by: Klaus Jensen Tested-by: Dmitry Fomichev Reviewed-by: Dmitry Fomichev --- hw/block/nvme.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 7222eff755ee..c73afdf8054f 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1707,10 +1707,6 @@ static uint16_t nvme_do_write(NvmeCtrl *n, NvmeReque= st *req, bool append, } =20 res->slba =3D nvme_advance_zone_wp(ns, zone, nlb); - } else if (append) { - trace_pci_nvme_err_invalid_opc(rw->opcode); - status =3D NVME_INVALID_OPCODE; - goto invalid; } =20 data_offset =3D nvme_l2b(ns, slba); --=20 2.30.0