Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7987384rwb; Tue, 13 Dec 2022 00:03:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fji/5ym3z7XASTNk2WYmezXxGtTxA2R64f5VVLZngSQOi6zsaQHkm3gzBRyJK3acExkG8 X-Received: by 2002:a17:907:cbc9:b0:7c1:6430:e5d0 with SMTP id vk9-20020a170907cbc900b007c16430e5d0mr8987467ejc.4.1670918596639; Tue, 13 Dec 2022 00:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670918596; cv=none; d=google.com; s=arc-20160816; b=PetYbCJdsz/ubEpFQWRY/g7zcLrkVRprhs1BKYg81Ck7V06hIiXshxDAU8aPHjaC/Q Zs/YJJCy+6ABKLz0pvpuVllYPmmgtj1T4QHFZrHwAB+2QvYQZTYXFzAzuQv7HqvYdclF Bngeid/G+unzmc4CMlM/QRQA9DQ/NaXoA4SGbcCVxmI8+ijWeuDyE978UdcwudiBxZbL lTcZn78xoC06InlNs1spJT1DTduhp053qAmiMeJ3PMYJ2aXyESXAzJWdttZY4iO8IQlc zey3idyASt0hYGGPftzdbz2vM6os6lOmhJ7H1oZdjLgTFcjNG17XFSFg+3g4wWtMiObp X4dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=M52jlXlGLJXmP8U4QEWJgEv2TBUJcy1UI9hyELdy+4s=; b=DkTAA1sT+zq/r4u8olLmXqjZ6O4viISnxOUbdfAz7wnhav/3m33aBZ+YXKFV4OZaSS FI28RV0m7XyYEHCK1L+KKTLKKuLRoZ5cHayoxWCIUWfToJbhCEGtwsdgNpKDfd6rKryV oC0KU5NGv4RD0Ejq9VHp15pH9j9q/3I6OmIO3JFNYad84wn4Wvw8vASjbILlxGQ+XDqj bdgNoIwS36bXJs/CgF28Kny3hDDuamjnoFlwiVbiJAe4WAar1TTFnYcojiej3OluS5cX cI7tFDwJBdOXzfvdsGgfeJqsRjufyd3C8ALIwnGvkbV1NH0saiMJcdPFsgwNKBjsIwIE UCFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc24-20020a1709078a1800b007804b5a2c48si7812320ejc.521.2022.12.13.00.02.54; Tue, 13 Dec 2022 00:03:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233694AbiLMHpc (ORCPT + 75 others); Tue, 13 Dec 2022 02:45:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbiLMHpa (ORCPT ); Tue, 13 Dec 2022 02:45:30 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA8ACB1D3; Mon, 12 Dec 2022 23:45:28 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 10F721E80D80; Tue, 13 Dec 2022 15:40:50 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FlQBb2iAncfU; Tue, 13 Dec 2022 15:40:47 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 440BA1E80D56; Tue, 13 Dec 2022 15:40:47 +0800 (CST) From: Li zeming To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, akpm@linux-foundation.org Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] kernel: smp: Remove unnecessary (void*) conversions Date: Tue, 13 Dec 2022 15:45:22 +0800 Message-Id: <20221213074522.3738-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The void * type pointer does not need to be cast and assigned to another pointer. Signed-off-by: Li zeming --- arch/alpha/kernel/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index f4e20f75438f..0ede4b044e86 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c @@ -628,7 +628,7 @@ flush_tlb_all(void) static void ipi_flush_tlb_mm(void *x) { - struct mm_struct *mm = (struct mm_struct *) x; + struct mm_struct *mm = x; if (mm == current->active_mm && !asn_locked()) flush_tlb_current(mm); else @@ -670,7 +670,7 @@ struct flush_tlb_page_struct { static void ipi_flush_tlb_page(void *x) { - struct flush_tlb_page_struct *data = (struct flush_tlb_page_struct *)x; + struct flush_tlb_page_struct *data = x; struct mm_struct * mm = data->mm; if (mm == current->active_mm && !asn_locked()) -- 2.18.2