Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp430819rwr; Thu, 20 Apr 2023 01:11:18 -0700 (PDT) X-Google-Smtp-Source: AKy350a3ygExNeJ7hFT6D3FT+8lWaE/J5m5rz/VJV5ilO5KNawURb9g5h9mFWBobTlkRf+q56U5u X-Received: by 2002:a05:6a00:10cc:b0:63a:cefa:9d44 with SMTP id d12-20020a056a0010cc00b0063acefa9d44mr364301pfu.14.1681978278591; Thu, 20 Apr 2023 01:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681978278; cv=none; d=google.com; s=arc-20160816; b=NGp/R7nyXJfY9vsFvhXvX2TICFb1sY8k1xEF7RjMBrPW5v14+TvSBr65KBwB/vxcRv qkSdNsjTAsbsoaVWj/Ma77nokwF8fllxA1JlRw8m0Bmpz9+ICtftdxJm7IozOcH1Sp96 Pbmog1u7LCCCzVgAYfAaSeJ9gRD0hKBPhIbWLxcIDpQYYy//15AJPoG5sjpiBXFZ4yMv 5l572/rq2GfIjcLlWQKBMg2jdbJ4qEGTL3Y2PUEc/PGc6WEBq5XYRY7c/pcTJqNc33OX 84tLbWyQXimOWRztJ/MqNI2dKelRCdoCAqK7X0VvV2zguPdwc1MDdrpG0BunD24rAkYG kvIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tQblYp4yrFQyzBTepLSC5JLCscYfrGNyNY3VFvZvqOw=; b=FUGU5tzWNvcqps+uQsht36B4B8ngTkD5qIXZLCR8Vt8F24hcoAxOVczZPgRiQi/FbZ XaXzRvRnQus7WB5NSSHZ4dycIiUTnm85d8pET62mvdRRvq3yG4lGmzCnhlCFLhyQzz3l 1cOjxIhv8ZhWQS4mdBnyyhJKNwHhcA1XOMleA4sJZOl4QNqeU2AZO+vLWLrSmVNjwzE4 QPCwm5YU6LMHHwSqRYd16AJ+Po9VZRp/Cc/f3g8ZWVYv2JUvVMdeGialA3kkvWNYDyP0 1C6ABDo7IM+bp+QRqxb6Udro2kLEn7UZPb4Wj2y6d0BTfHQwU6ShlM9L5dA9hzFqto5G 7/7A== 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 b126-20020a62cf84000000b0063d6042d2adsi988196pfg.296.2023.04.20.01.11.06; Thu, 20 Apr 2023 01:11:18 -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 S234171AbjDTICE (ORCPT + 99 others); Thu, 20 Apr 2023 04:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234014AbjDTICC (ORCPT ); Thu, 20 Apr 2023 04:02:02 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 22087213F; Thu, 20 Apr 2023 01:02:00 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 5377518014D2A8; Thu, 20 Apr 2023 16:01:58 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Suhui To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Suhui Subject: [PATCH] clk: Remove unnecessary (void*) conversions Date: Thu, 20 Apr 2023 16:01:54 +0800 Message-Id: <20230420080154.2356480-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,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 No need cast (void*) to (struct hlist_head **). Signed-off-by: Suhui --- drivers/clk/clk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ae07685c7588..9410a4e1b04b 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3194,7 +3194,7 @@ static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c, static int clk_summary_show(struct seq_file *s, void *data) { struct clk_core *c; - struct hlist_head **lists = (struct hlist_head **)s->private; + struct hlist_head **lists = s->private; seq_puts(s, " enable prepare protect duty hardware\n"); seq_puts(s, " clock count count count rate accuracy phase cycle enable\n"); @@ -3253,7 +3253,7 @@ static int clk_dump_show(struct seq_file *s, void *data) { struct clk_core *c; bool first_node = true; - struct hlist_head **lists = (struct hlist_head **)s->private; + struct hlist_head **lists = s->private; seq_putc(s, '{'); clk_prepare_lock(); -- 2.30.2