Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3089230rwa; Mon, 22 Aug 2022 21:15:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Ll6xvNlAVH64MRUHpUMxN03wAvD7uhflIvy7lsEpDcIDQVST4USuDaTlrDjEp6PV+gPg8 X-Received: by 2002:a05:6402:3596:b0:447:11ea:362d with SMTP id y22-20020a056402359600b0044711ea362dmr1532351edc.117.1661228135654; Mon, 22 Aug 2022 21:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661228135; cv=none; d=google.com; s=arc-20160816; b=Kr0/I93A5+gKgUFJPr38+Ez5puV12hG1qpgTusxNEDP2/ymqsXNFJjAt1rUTtkgb4O PVSTkxOJiNwAXg9FzF57ij2eBO1o9RAtZSghYCGypaR0+6ivtWUefo11JVCbEIkv/q1H 5h1Zb1H64hVP8Iv28GWqcUTAW7i7Qrc6ydieM4WHjAPZSVgbvqTb+QIR09fZ0yiIvRhL J8BQNZChORv00tnFAp0dYDHiBiHVv/Q6F0XiAIWsd9MBACGJJLmDZdN0vYnCOKb6O/Xj BSgQ8SBI2Xfixq8Kg65AgMCN1wY4ZKubUEgWFtdpm0nHqzgftWnbKkXRuqZA+Ddgx5yi lJOw== 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=BkmDJno5ZK6B82Iv8d0GZIr8hV2tteqlQEQJ9lIfAuo=; b=Vdwo0oIu8A8uls08VjnsvGRWpLHVSMb+Kl5kWywn3WPmZZCmxxpidXoQ5j1MDVR4CW CNYQ/VYdOAZyH9WZRzhiqWn1+iSuucEEy4w0z8LcptTAnwGbnGLW55QjhTdHwt2Wwexp KGo5SVUOS46fABIygFCuLQTgY8cI1JhZZ1w1+dgO7Acq7Zi0/0KnEWelhmwvUyyOJQ7j Usj/DqBPdwZkIjzohtmR31XhwSrP+YuTsv+i6LH6Z23FpDAChuyFNlJZRFMb/ZxJfZZp Pqwg/0vbzULCa7eSZLlFJgd4rY9Lg/ablMkTIAyuCpC9UBrCOVntau3u8z83FSMsOvgw 0J6Q== 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 k8-20020a17090627c800b007312456b75fsi9180282ejc.270.2022.08.22.21.15.09; Mon, 22 Aug 2022 21:15:35 -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 S239724AbiHWDqA (ORCPT + 99 others); Mon, 22 Aug 2022 23:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239598AbiHWDp6 (ORCPT ); Mon, 22 Aug 2022 23:45:58 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38A6B5E337; Mon, 22 Aug 2022 20:45:58 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 35BAD1E80CE3; Tue, 23 Aug 2022 11:42:11 +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 9dOJF5QK0ECb; Tue, 23 Aug 2022 11:42:08 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 82E5A1E80CBF; Tue, 23 Aug 2022 11:42:08 +0800 (CST) From: Zhou jie 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, Zhou jie Subject: [PATCH] hv/hv_kvp_daemon: remove unnecessary (void*) conversions Date: Tue, 23 Aug 2022 11:45:52 +0800 Message-Id: <20220823034552.8596-1-zhoujie@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,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 remove unnecessary void* type casting. Signed-off-by: Zhou jie --- 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