Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2082688rwb; Sat, 8 Oct 2022 01:51:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vFK1WnnLfSMnuc4pD+M/30Ne0haN1SKteUf8F0x8+9xG/i+zDEB90B9SY+XD+nqucfCFg X-Received: by 2002:a17:902:f612:b0:178:a692:b20a with SMTP id n18-20020a170902f61200b00178a692b20amr8652814plg.55.1665219066313; Sat, 08 Oct 2022 01:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665219066; cv=none; d=google.com; s=arc-20160816; b=ayqdZqV+SNA+6z6ZmxT6QKgQvAl/m7NbM2DmB6A1MhFTHTCCu+GsNsxtD0LwDMUH1s Qt6u0ja52mINEpJqtnRSTFOMxzUfoLKWd1y+pQQN8vUJ5cshyzoTPuvCpa1RcbCBouwM ZxLllRSFRn8SCLeldVPwBngSXTBrZzQWbKUdCU/RKJluG5rRN9YuIlCmWCMhBD4t2uD6 9hndfUlXmZrjtuaYK6jEc6RqdQ52jRviIdwxZXdc8FSZTxiPPMw0e08kqB6qYuva20+Q Wa54s0OugQDPLoQ5jKqg3A4bt1KoVjsjtZMAJ4v2qZXSXUnUxZgab6nZY7MsFw79fwqn 6q8Q== 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=4b6W6uHjGEc+ZIs4rGtnrtaCH6oBjEyMWgy3nYqq8wQ=; b=jYWIIAMEg3WMc8MWnA7ymNZeztaGAsaCWUxvSOe7jsC34bQ3XgweSYVfjNN44eX4Pn R4u+5RPQsOcuOHdmxfZ7hqTy0l9XzjAxkdtJzlNS4N4nCNWhSj3Oy4V9BtRG0uH6Ncr8 bc9FcQkn9l3DXFGpnnGu5LyWaHJLazpxhXO3OMTTFRV7s0uDMhxAczSUS8fBp3RnaKMQ I7TAg87ri40O5DmEgcrFMfEJX1KBz4i+TFs7+AhcdocmEMZ371YUDn5BwCqK3xmFipV8 ylKVfgRJk6fky7OJk9+UO/Bz+NYsEhA24hEQ4kjTDgzXmOkXBxqJNr1MMC02NXjqkzoX xnOg== 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 w70-20020a638249000000b0045259b902e7si5230562pgd.810.2022.10.08.01.50.54; Sat, 08 Oct 2022 01:51:06 -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 S229623AbiJHIcR (ORCPT + 99 others); Sat, 8 Oct 2022 04:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiJHIcQ (ORCPT ); Sat, 8 Oct 2022 04:32:16 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5845B520B3; Sat, 8 Oct 2022 01:32:15 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 2CFAB1E80D72; Sat, 8 Oct 2022 16:26:28 +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 Epqull-euYaK; Sat, 8 Oct 2022 16:26:25 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 5B1CB1E80D4D; Sat, 8 Oct 2022 16:26:25 +0800 (CST) From: Li zeming To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] hv: Remove unnecessary (void*) conversions Date: Sat, 8 Oct 2022 16:32:06 +0800 Message-Id: <20221008083206.4486-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 addrp is a void pointer and does not require a cast type. Signed-off-by: Li zeming --- tools/hv/hv_kvp_daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 1e6fd6ca513b..445abb53bf0d 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c @@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp, const char *str; if (family == AF_INET) { - addr = (struct sockaddr_in *)addrp; + addr = addrp; str = inet_ntop(family, &addr->sin_addr, tmp, 50); addr_length = INET_ADDRSTRLEN; } else { - addr6 = (struct sockaddr_in6 *)addrp; + addr6 = addrp; str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); addr_length = INET6_ADDRSTRLEN; } -- 2.18.2