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

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