Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7967024rwb; Mon, 12 Dec 2022 23:40:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PO6/r4BajQ2AOpF9WPOgYM4anALBLqamMT7bJ2CrQZQJhWwUrIHg4oTurHylFp0ZBalDx X-Received: by 2002:a17:90a:b282:b0:219:e43b:7f03 with SMTP id c2-20020a17090ab28200b00219e43b7f03mr20040571pjr.23.1670917258424; Mon, 12 Dec 2022 23:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670917258; cv=none; d=google.com; s=arc-20160816; b=bxN+ZFmKIYzJLxvza8loe5ToZNTDgHoJRTyttarasxBeLVPVtk4FlMYBiADm5uttQR nFCyvcFPa5sAMS3Uq/UXeme/jkM3FbY3YoouPSi402mJE+sBd0CVzceHyfL2t/zZm7t9 n5Kkm/xpI7UyYuBV5Er45GWEDwcpU44HdVPObDbEP6K2rcCY1hL7VZNt7qbVsCj+c584 nfZFlpqoPL+Yig0GlQzk+Rj3OOl7/T00pDl2ZjmidObz6tavC76V03u2p9USb+KYmdNE cF7VoDMzHzDLWUYkQFVenaewzZFx0Tjae/rpzZAw4wKq+h286p/TLzl/LR/KFVECpjx0 vIpQ== 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=xDvS+O4opyORBAMh8HIWbznDq4C+/UjODFwzhsVZ0rc=; b=bO867+5yAca47IsZqCW9Ix4W6lSGNho+ntVZqCOBV7ibeJkrlF1OJW7ivRbEb7keOK LKrjnYg5cPXXMkE5rbQKBZLSIEXB0TvsLrcAVrG8izi2/oKTBU8MhY+gKlR1nOJcUIc+ VokRfI3ki5ZHBDZYmcFgtmy9yHRAYeTZk6wqGGqkOA6ZIp3oIDHTfHjDhgtDaDEGg9mI LZrlOULGutx/IlP1XLE1KTmMvcleuAZ71pW2B5Y52S4WLriNDZ8EvJP/n9CLA96ai/j4 h/PkIzMqNlytY7RHpyAYFtxvQql2soQwM/Cwp/mtn/uV3eM++MRVQ0z/Az0z6lIkgOvK G03w== 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 oe16-20020a17090b395000b00213213d63bbsi11416520pjb.41.2022.12.12.23.40.48; Mon, 12 Dec 2022 23:40:58 -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 S234320AbiLMHgq (ORCPT + 74 others); Tue, 13 Dec 2022 02:36:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbiLMHgo (ORCPT ); Tue, 13 Dec 2022 02:36:44 -0500 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2443413D6C; Mon, 12 Dec 2022 23:36:43 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 7E1CD1E80D80; Tue, 13 Dec 2022 15:32:03 +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 9xnrt98Y5fCV; Tue, 13 Dec 2022 15:32:00 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id BF5521E80D56; Tue, 13 Dec 2022 15:32:00 +0800 (CST) From: Li zeming To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, ebiederm@xmission.com, akpm@linux-foundation.org Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] kernel: process: Remove unnecessary (void*) conversions Date: Tue, 13 Dec 2022 15:36:33 +0800 Message-Id: <20221213073633.3586-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,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 generic_ptr is a void * type and does not require a cast. Signed-off-by: Li zeming --- arch/alpha/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index 65fdae9e48f3..5bc8be1eba11 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c @@ -74,7 +74,7 @@ struct halt_info { static void common_shutdown_1(void *generic_ptr) { - struct halt_info *how = (struct halt_info *)generic_ptr; + struct halt_info *how = generic_ptr; struct percpu_struct *cpup; unsigned long *pflags, flags; int cpuid = smp_processor_id(); -- 2.18.2