Skip to content

Commit

Permalink
tools: hv: kvp: remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Zhou jie authored and liuw committed Sep 5, 2022
1 parent 676576d commit 2258954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/hv/hv_kvp_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2258954

Please sign in to comment.