From nobody Wed Nov 5 13:13:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1534549563231598.2612918228444; Fri, 17 Aug 2018 16:46:03 -0700 (PDT) Received: from localhost ([::1]:36802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqoRO-0006QE-20 for importer@patchew.org; Fri, 17 Aug 2018 19:46:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqoPE-0004q3-DN for qemu-devel@nongnu.org; Fri, 17 Aug 2018 19:43:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqoBj-0003HP-M8 for qemu-devel@nongnu.org; Fri, 17 Aug 2018 19:29:55 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57943) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqoBj-0003Gv-EL for qemu-devel@nongnu.org; Fri, 17 Aug 2018 19:29:51 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EDF28225FA; Fri, 17 Aug 2018 19:29:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 17 Aug 2018 19:29:50 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 82B591025D; Fri, 17 Aug 2018 19:29:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=jiGCv1p+hKqW1f Fp947jDJrT3lXSi7gGUkBKgprs4ZY=; b=1Ren50ADTz3OMh3Ru3cSR+0js2SM2Q iSSHO6MXMAvd/Ps5S4iTfb7GgMJBEzHhg20SnHx3DjvP2mHLCbAalQwHwR7QUzo4 Hd8hl8Qla6f66elNlSAxMBIOsTfC+54IKu//eOVDGkVGDnkD2zjQ373AT21vzeXA uy1bhpNffMm6k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=jiGCv1p+hKqW1fFp947jDJrT3lXSi7gGUkBKgprs4ZY=; b=EWlXB2GV xew7j5Q/to6+Shm7q3ehPUvLsLje4jesz5y18lvPw0nTsd+PM6B3+rVcHyCjXAdA YmhZ/7NPZBuqAL8+firM94y1qOHmQAbs5esJwegrbBUTIJRSRsL+dS8kdAxyH9j+ dnT7cqgUQamBasYzaV3r1G2xy/EofPet9SZwgNtVrb8SpOZQvNBrh+Kv0Dn+oE4w 8BP5a2AGTfCEW5jpTs5XW60oRJn92rj6+7ayh/srQeNq/Kg78JWUuEEXVeIKsQ43 KNK88HKfr7prLYZy1yldYZ+6JbKkMnzQ6exhjicvQYP/oTLW4zyQxDJqrF+3cj6s dv+2j8tKeMdJdw== X-ME-Proxy: X-ME-Sender: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Fri, 17 Aug 2018 19:29:18 -0400 Message-Id: <20180817232923.28899-2-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180817232923.28899-1-cota@braap.org> References: <20180817232923.28899-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH 1/6] qht: remove unused map param from qht_remove__locked X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Emilio G. Cota Reviewed-by: Alex Benn=C3=A9e --- util/qht.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/qht.c b/util/qht.c index c138777a9c..7b57b50a24 100644 --- a/util/qht.c +++ b/util/qht.c @@ -665,8 +665,7 @@ static inline void qht_bucket_remove_entry(struct qht_b= ucket *orig, int pos) =20 /* call with b->lock held */ static inline -bool qht_remove__locked(struct qht_map *map, struct qht_bucket *head, - const void *p, uint32_t hash) +bool qht_remove__locked(struct qht_bucket *head, const void *p, uint32_t h= ash) { struct qht_bucket *b =3D head; int i; @@ -701,7 +700,7 @@ bool qht_remove(struct qht *ht, const void *p, uint32_t= hash) qht_debug_assert(p); =20 b =3D qht_bucket_lock__no_stale(ht, hash, &map); - ret =3D qht_remove__locked(map, b, p, hash); + ret =3D qht_remove__locked(b, p, hash); qht_bucket_debug__locked(b); qemu_spin_unlock(&b->lock); return ret; --=20 2.17.1