Skip to content

Commit 2258954

Browse files
Zhou jieliuw
authored andcommitted
tools: hv: kvp: remove unnecessary (void*) conversions
Remove unnecessary void* type casting. Signed-off-by: Zhou jie <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent 676576d commit 2258954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/hv/hv_kvp_daemon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp,
772772
const char *str;
773773

774774
if (family == AF_INET) {
775-
addr = (struct sockaddr_in *)addrp;
775+
addr = addrp;
776776
str = inet_ntop(family, &addr->sin_addr, tmp, 50);
777777
addr_length = INET_ADDRSTRLEN;
778778
} else {
779-
addr6 = (struct sockaddr_in6 *)addrp;
779+
addr6 = addrp;
780780
str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
781781
addr_length = INET6_ADDRSTRLEN;
782782
}

0 commit comments

Comments
 (0)