From nobody Wed Sep 17 19:36:19 2025 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 CA663C4332F for ; Fri, 16 Dec 2022 06:14:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiLPGOx (ORCPT ); Fri, 16 Dec 2022 01:14:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiLPGOt (ORCPT ); Fri, 16 Dec 2022 01:14:49 -0500 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B9DC15823 for ; Thu, 15 Dec 2022 22:14:47 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 8B7E11E80D72; Fri, 16 Dec 2022 14:09:59 +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 qNLiGqz1SLfn; Fri, 16 Dec 2022 14:09:56 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id B51DC1E80D58; Fri, 16 Dec 2022 14:09:56 +0800 (CST) From: Li kunyu To: hubcap@omnibond.com, martin@omnibond.com Cc: devel@lists.orangefs.org, linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] orangefs: remove unnecessary (void*) conversions Date: Fri, 16 Dec 2022 14:14:39 +0800 Message-Id: <20221216061439.3750-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 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" The void * type pointer does not need to be cast. Signed-off-by: Li kunyu --- fs/orangefs/orangefs-debugfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c index 1b508f543384..6e69e47ee739 100644 --- a/fs/orangefs/orangefs-debugfs.c +++ b/fs/orangefs/orangefs-debugfs.c @@ -721,7 +721,7 @@ gossip_debug(GOSSIP_UTILS_DEBUG, "%s: string:%s:\n", __= func__, debug_string); =20 static void do_k_string(void *k_mask, int index) { - __u64 *mask =3D (__u64 *) k_mask; + __u64 *mask =3D k_mask; =20 if (keyword_is_amalgam((char *) s_kmod_keyword_mask_map[index].keyword)) goto out; @@ -747,7 +747,7 @@ static void do_k_string(void *k_mask, int index) =20 static void do_c_string(void *c_mask, int index) { - struct client_debug_mask *mask =3D (struct client_debug_mask *) c_mask; + struct client_debug_mask *mask =3D c_mask; =20 if (keyword_is_amalgam(cdm_array[index].keyword)) goto out; @@ -794,7 +794,7 @@ static int check_amalgam_keyword(void *mask, int type) int rc =3D 0; =20 if (type) { - c_mask =3D (struct client_debug_mask *) mask; + c_mask =3D mask; =20 if ((c_mask->mask1 =3D=3D cdm_array[client_all_index].mask1) && (c_mask->mask2 =3D=3D cdm_array[client_all_index].mask2)) { @@ -811,7 +811,7 @@ static int check_amalgam_keyword(void *mask, int type) } =20 } else { - k_mask =3D (__u64 *) mask; + k_mask =3D mask; =20 if (*k_mask >=3D s_kmod_keyword_mask_map[k_all_index].mask_val) { strcpy(kernel_debug_string, ORANGEFS_ALL); @@ -842,10 +842,10 @@ static void debug_string_to_mask(char *debug_string, = void *mask, int type) gossip_debug(GOSSIP_UTILS_DEBUG, "%s: start\n", __func__); =20 if (type) { - c_mask =3D (struct client_debug_mask *)mask; + c_mask =3D mask; element_count =3D cdm_element_count; } else { - k_mask =3D (__u64 *)mask; + k_mask =3D mask; *k_mask =3D 0; element_count =3D num_kmod_keyword_mask_map; } --=20 2.18.2