From nobody Fri Feb 13 21:27:59 2026 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 48127CE79CE for ; Wed, 20 Sep 2023 11:41:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234234AbjITLlw (ORCPT ); Wed, 20 Sep 2023 07:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjITLlu (ORCPT ); Wed, 20 Sep 2023 07:41:50 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E2AB0; Wed, 20 Sep 2023 04:41:44 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401d6f6b2e0so5346975e9.1; Wed, 20 Sep 2023 04:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695210103; x=1695814903; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=l0bjyLQzALz+mGal4nDqDnLTgwXZ5k5mNvC8JvxOXaE=; b=mkf9b3++aDixWc4+JaTzappLB5euszM4hX9QpR/4FaHm3/EWRU6uPdRj6ByItAGDgi KTSAxPNpNeBV+wtflvHEmsAWFUoFdFBtEFnxefxOzF8YpdMtFIKRs7CfXjF9ZKTe+I2s W5iWqOfmoBy1dLgEhW79HM7/umxlpZ4Pkff6rib+i0JdRajIaQVgGwTa3aJc9BQldPmk LlWpnHt+f4+5aUYqxx4fQiz8gDv/fzda0bIDVcxWBK5wtdbXVe5Hr7xpgvxsFlgtqY8y I2s5EV9lApprh20NgyUhLXkqtpQJpatZVgHDP1+oN8cwhR+XH7ee8F04qcZOosRpXUGH bCnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695210103; x=1695814903; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l0bjyLQzALz+mGal4nDqDnLTgwXZ5k5mNvC8JvxOXaE=; b=J/0/puEbnGgYBTjKQhE9kQmgrBBKAHX4qTMlbsNGzU7flYnul9t42q3Cc5tYWa2YQ/ 1tQzJB3sUlk/kR5hhTJ3I43S3bwKDCQYUyESpz+ZogHB8ligRhneZM7fnaNzLpnmVNtW qGzKsN3Txd/Cd4b5Wbs5vV+QcYJbAmx346APq3paHAuR7Mv+USkwhv6F0JvU37tXVMac k2Ec1Xdm2U2o/KPOuKo1z2dFBxSemM6VdpW5GPKS8EhQR+waeKzYfDWdVlgFL6EJZS7P Fzs7Jb41ssI2aQ3LQYU/zopLprj8Sd6NI8qKztWQgUdVsE4EAHSBa+7ttx1jl6zX+F3B yTEg== X-Gm-Message-State: AOJu0YyD085ewO9Fk3L1WELBJblzO23kl8VxgG+2yRd9yh7VY5kA8+TF JfJ3XK5aD2jZt1VoFB9zVro= X-Google-Smtp-Source: AGHT+IHHfNcZhS4i3ItXzPzHqebwjb4GlO5M7Tpuh6NDxMuETe7SdV0JlOz/Yg42mxnyccxI0D+lhQ== X-Received: by 2002:a05:600c:3b20:b0:405:251f:8455 with SMTP id m32-20020a05600c3b2000b00405251f8455mr850185wms.7.1695210102787; Wed, 20 Sep 2023 04:41:42 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id o16-20020a05600c379000b00401e32b25adsm1752642wmr.4.2023.09.20.04.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:41:42 -0700 (PDT) From: Colin Ian King To: Josh Poimboeuf , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] x86/unwind/orc: remove redundant initialization of pointer mid Date: Wed, 20 Sep 2023 12:41:41 +0100 Message-Id: <20230920114141.118919-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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 pointer mid 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 --- 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 7e574cf3bf8a..d00c28aaa5be 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; --=20 2.39.2