From nobody Fri Dec 19 16:05:38 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E709CE7D0A3 for ; Thu, 21 Sep 2023 17:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbjIURtN (ORCPT ); Thu, 21 Sep 2023 13:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjIURs7 (ORCPT ); Thu, 21 Sep 2023 13:48:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C87A2DEB7; Thu, 21 Sep 2023 10:25:10 -0700 (PDT) Date: Thu, 21 Sep 2023 06:49:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695278964; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9F0spGRPHXeTOxcSn6yRhRnx9hV6elwlzOuk+huTzII=; b=olFseMA6x0YTdVgUnhzm0IinaAVEn5Ws7+ciwzOobGpplL+3kuf7OWzFgiijDONrjL+LsH SyjQDCRxbYAIGj6ss6mT4dxk3rhm5CgcZ2BdAiVdXoLQG8L2kkTQ5/0HwGow0t8mjoMbXp e/1ZU9EXuZQz8kSP4DrRYaPPRZtBRYMN0++mLqrV+SQgFncT4sx0g0g+YEl42QWtji7pHD 5KojP/gN8VWcO0hcNSqQIvUZnwA18vgYQ4+1hvnC8sy30suIVKENoT/fHnSl9vp8iIRk/E 99tZOjpDXx+gQ91GlfOqwJuP40YbslIkWrORC6s4hvTfxAqCTrxVaequZyfe8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695278964; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9F0spGRPHXeTOxcSn6yRhRnx9hV6elwlzOuk+huTzII=; b=w/Td7f0L/wsrN0rqirurJggSYSzW7au0VZeD16dq/iyVXDljTsVfmF8oPce4wDpSUFsYYf 9yAYyIF/PwvwLtDw== From: "tip-bot2 for Colin Ian King" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find() Cc: Colin Ian King , Ingo Molnar , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230920114141.118919-1-colin.i.king@gmail.com> References: <20230920114141.118919-1-colin.i.king@gmail.com> MIME-Version: 1.0 Message-ID: <169527896379.27769.3655940245811968387.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the objtool/core branch of tip: Commit-ID: fef44ebaf61b57a71ab818058926a3f9a0ac81e6 Gitweb: https://git.kernel.org/tip/fef44ebaf61b57a71ab818058926a3f9a= 0ac81e6 Author: Colin Ian King AuthorDate: Wed, 20 Sep 2023 12:41:41 +01:00 Committer: Ingo Molnar CommitterDate: Thu, 21 Sep 2023 08:41:23 +02:00 x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_f= ind() The 'mid' pointer is being initialized with a value that is never read, it is being re-assigned and used inside a for-loop. Remove the redundant initialization. Cleans up clang scan build warning: arch/x86/kernel/unwind_orc.c:88:7: warning: Value stored to 'mid' during = its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King Signed-off-by: Ingo Molnar Cc: Josh Poimboeuf Link: https://lore.kernel.org/r/20230920114141.118919-1-colin.i.king@gmail.= com --- arch/x86/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index 7e574cf..d00c28a 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -85,7 +85,7 @@ static struct orc_entry *__orc_find(int *ip_table, struct= orc_entry *u_table, { int *first =3D ip_table; int *last =3D ip_table + num_entries - 1; - int *mid =3D first, *found =3D first; + int *mid, *found =3D first; =20 if (!num_entries) return NULL;