Skip to content

Commit

Permalink
net/cmsg_sender: Remove a semicolon
Browse files Browse the repository at this point in the history
Remove the repeated ';' from code.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Li kunyu authored and David S. Miller committed Jul 1, 2022
1 parent c7b1267 commit dbdd9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/net/cmsg_sender.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ int main(int argc, char *argv[])
buf[1] = 0;
} else if (opt.sock.type == SOCK_RAW) {
struct udphdr hdr = { 1, 2, htons(opt.size), 0 };
struct sockaddr_in6 *sin6 = (void *)ai->ai_addr;;
struct sockaddr_in6 *sin6 = (void *)ai->ai_addr;

memcpy(buf, &hdr, sizeof(hdr));
sin6->sin6_port = htons(opt.sock.proto);
Expand Down

0 comments on commit dbdd9a2

Please sign in to comment.