From patchwork Tue Sep 19 11:05:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 13391216 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 6ECA9CD54AF for ; Tue, 19 Sep 2023 11:05:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbjISLFY (ORCPT ); Tue, 19 Sep 2023 07:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjISLFM (ORCPT ); Tue, 19 Sep 2023 07:05:12 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D78519A; Tue, 19 Sep 2023 04:05:04 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxbetfgAllzeUpAA--.12741S3; Tue, 19 Sep 2023 19:05:03 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxfNxdgAllNn4LAA--.22959S2; Tue, 19 Sep 2023 19:05:01 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] MIPS: Remove dead code in relocate_new_kernel Date: Tue, 19 Sep 2023 19:05:01 +0800 Message-Id: <1695121501-13216-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8CxfNxdgAllNn4LAA--.22959S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2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vfC2KfnxnUUI43ZEXa7IU1MKZJUUUUU== Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org There are two adjacent "b" instructions, the second one is unreachable, it is dead code, just remove it. Signed-off-by: Tiezhu Yang --- arch/mips/kernel/relocate_kernel.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/kernel/relocate_kernel.S b/arch/mips/kernel/relocate_kernel.S index f5b2ef97..8f0a726 100644 --- a/arch/mips/kernel/relocate_kernel.S +++ b/arch/mips/kernel/relocate_kernel.S @@ -66,7 +66,6 @@ copy_word: LONG_ADDIU s6, s6, -1 beq s6, zero, process_entry b copy_word - b process_entry done: #ifdef CONFIG_SMP