From patchwork Tue Jun 13 19:39:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 106191 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2330244vqr; Sun, 11 Jun 2023 20:16:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4gTNGZRXBLrpcPBIWmDuB2f7TCpqH4qu9JfRHam6ulTxs8D3iAx2ebPg7sMdUX0/9YKYYa X-Received: by 2002:a05:6a21:3993:b0:10e:e58d:ce85 with SMTP id ad19-20020a056a21399300b0010ee58dce85mr8703064pzc.10.1686539802635; Sun, 11 Jun 2023 20:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686539802; cv=none; d=google.com; s=arc-20160816; b=ruKi/Qmsc498Icjd29gpjnHa6yAqHPS/1H87rvP8InuIbsJ7DnvD0RyCvlPLUk4Ncd GPVoIY7oOrtSfLg/zOhCdMxlP+l6bUi7dc1MwYBzeIJLS3X9600YUpudN2MvaouJJzZS wKC9f8HiWpugIULMze5pMFgsykOIppYZj2FKG5anSHigEx7WjMcEPIdYYrSzAtm+/gbw WDH20PXe/++k5vwe23URmKxyLyEaLoTOYiyVPKaCM82u3f+G8J45cycnIZBYG8EyW6+o eCc73vCDLoJFePgWhS+DD+lhMp5ugzLfmzGwxoLzXTORckZRUMYGE5dD/3KNIpr9xH/K 3M1A== 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=WShenu91aQQzqF2MkFpYD8WApKKBOkY/8P9o8o5E2+M=; b=FJttjkzfFL3uV1het2ymHfSZPdBLV5B2sewj5HR1Zvy9jLaeicb+GW25kfoUDmD13r Sq0Dw/7x27U/F7O8nbPOiN7zBeFwQxGULDZCGXPEtxB0hPzpQ+qLrnJ6YWDPUbXzhs8p /oWYm0/pd9QyFrdBFkVOhUqHNOTOflosm+LMlaBkY8qZTQVbi7DV1gER7Cs9azLYCOYt v1atOSgRTUwtSA3OZA8x5ew+vZWcr8py1RRzaN1ggsdclpNkkqJbBD8xeAdlGghNiVJR wL/gMa7iCRxIn307BQQ5fHqB59bwrfU1brQSnbUK8Ypip5SJJro7vd2W5qwNKkRM982D FORw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g123-20020a636b81000000b00542940ce609si6140119pgc.135.2023.06.11.20.16.29; Sun, 11 Jun 2023 20:16:42 -0700 (PDT) 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 S232777AbjFLDII (ORCPT + 99 others); Sun, 11 Jun 2023 23:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232117AbjFLDIF (ORCPT ); Sun, 11 Jun 2023 23:08:05 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 0683910D for ; Sun, 11 Jun 2023 20:08:03 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 6F615602B440F; Mon, 12 Jun 2023 11:08:01 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] time: clocksource: remove unnecessary (void*) conversions Date: Wed, 14 Jun 2023 03:39:19 +0800 Message-Id: <20230613193919.3439-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768465159866843461?= X-GMAIL-MSGID: =?utf-8?q?1768465159866843461?= Pointer variables of void * type do not require type cast. Signed-off-by: Li zeming --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 91836b727cef..82087cec5b07 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -327,7 +327,7 @@ static void clocksource_verify_choose_cpus(void) static void clocksource_verify_one_cpu(void *csin) { - struct clocksource *cs = (struct clocksource *)csin; + struct clocksource *cs = csin; csnow_mid = cs->read(cs); }