Blame SOURCES/hpvd-tools-hv-kvp-remove-unnecessary-void-conversions.patch

519588
From 07081e4a9622c042dec1e3c7ffd47722a6dc0337 Mon Sep 17 00:00:00 2001
519588
From: Mohammed Gamal <mgamal@redhat.com>
519588
Date: Thu, 17 Nov 2022 18:58:31 +0100
519588
Subject: [PATCH 3/3] tools: hv: kvp: remove unnecessary (void*) conversions
519588
519588
RH-Author: Mohamed Gamal Morsy <mmorsy@redhat.com>
519588
RH-MergeRequest: 5: Update hyperv-daemons for RHEL-9.2
519588
RH-Bugzilla: 2139457
519588
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
519588
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
519588
RH-Commit: [2/2] d3fe2884e899eab164e8b42398db72618b05ec71
519588
519588
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2139457
519588
519588
commit 2258954234db7530e9d86bb32cd6ad54485ff926
519588
Author: Zhou jie <zhoujie@nfschina.com>
519588
Date:   Tue Aug 23 11:45:52 2022 +0800
519588
519588
    tools: hv: kvp: remove unnecessary (void*) conversions
519588
519588
    Remove unnecessary void* type casting.
519588
519588
    Signed-off-by: Zhou jie <zhoujie@nfschina.com>
519588
    Reviewed-by: Michael Kelley <mikelley@microsoft.com>
519588
    Link: https://lore.kernel.org/r/20220823034552.8596-1-zhoujie@nfschina.com
519588
    Signed-off-by: Wei Liu <wei.liu@kernel.org>
519588
519588
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
519588
---
519588
 hv_kvp_daemon.c | 4 ++--
519588
 1 file changed, 2 insertions(+), 2 deletions(-)
519588
519588
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
519588
index 5f98bee..2ad9af3 100644
519588
--- a/hv_kvp_daemon.c
519588
+++ b/hv_kvp_daemon.c
519588
@@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp,
519588
 	const char *str;
519588
 
519588
 	if (family == AF_INET) {
519588
-		addr = (struct sockaddr_in *)addrp;
519588
+		addr = addrp;
519588
 		str = inet_ntop(family, &addr->sin_addr, tmp, 50);
519588
 		addr_length = INET_ADDRSTRLEN;
519588
 	} else {
519588
-		addr6 = (struct sockaddr_in6 *)addrp;
519588
+		addr6 = addrp;
519588
 		str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
519588
 		addr_length = INET6_ADDRSTRLEN;
519588
 	}
519588
-- 
519588
2.31.1
519588