From nobody Sat Apr 11 07:09:23 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 53FA2C7EE2F for ; Fri, 3 Mar 2023 02:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbjCCC6J (ORCPT ); Thu, 2 Mar 2023 21:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjCCC6H (ORCPT ); Thu, 2 Mar 2023 21:58:07 -0500 Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11501117A; Thu, 2 Mar 2023 18:58:05 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id DDDBF1A009FD; Fri, 3 Mar 2023 10:58:49 +0800 (CST) X-Virus-Scanned: amavisd-new at nfschina.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zGQy1BLQ1ndF; Fri, 3 Mar 2023 10:58:49 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: yuzhe@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 7F17B1A00994; Fri, 3 Mar 2023 10:58:48 +0800 (CST) From: Yu Zhe To: catalin.marinas@arm.com, will@kernel.org, keescook@chromium.org, samitolvanen@google.com, chenzhou10@huawei.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, liqiong@nfschina.com, Yu Zhe Subject: [PATCH] arm64: kexec: remove unnecessary (void*) conversions Date: Fri, 3 Mar 2023 10:57:15 +0800 Message-Id: <20230303025715.32570-1-yuzhe@nfschina.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe --- arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_= kexec.c index ce3d40120f72..d35cb0568f84 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -102,7 +102,7 @@ static void kexec_segment_flush(const struct kimage *ki= mage) /* Allocates pages for kexec page table */ static void *kexec_page_alloc(void *arg) { - struct kimage *kimage =3D (struct kimage *)arg; + struct kimage *kimage =3D arg; struct page *page =3D kimage_alloc_control_pages(kimage, 0); void *vaddr =3D NULL; =20 --=20 2.11.0