Skip to contentSkip to conversation

tools: ynl: remove extraneous ; after statements

PATCH Applied Colin Ian King 3 participants 3 messages Aug 2, 2024 – Aug 5, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: ynl: remove extraneous ; after statements

There are a couple of statements with two following semicolons, replace these with just one semicolon.

---
 tools/net/ynl/lib/ynl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/net/ynl/lib/ynl.c +2 -2
index fcb18a5a6d70..e16cef160bc2 100644
@@ -696,14 +696,14 @@ ynl_sock_create(const struct ynl_family *yf, struct ynl_error *yse)
 	addr.nl_family = AF_NETLINK;
 	if (bind(ys->socket, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
 		__perr(yse, "unable to bind to a socket address");
-		goto err_close_sock;;
+		goto err_close_sock;
 	}
 
 	memset(&addr, 0, sizeof(addr));
 	addrlen = sizeof(addr);
 	if (getsockname(ys->socket, (struct sockaddr *)&addr, &addrlen) < 0) {
 		__perr(yse, "unable to read socket address");
-		goto err_close_sock;;
+		goto err_close_sock;
 	}
 	ys->portid = addr.nl_pid;
 	ys->seq = random();
Signature · 1 line
2.39.2
#2 lore raw
In reply to Colin Ian King
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Fri, 2 Aug 2024 12:34:36 +0100 you wrote:

There are a couple of statements with two following semicolons, replace these with just one semicolon.

---
 tools/net/ynl/lib/ynl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- [next] tools: ynl: remove extraneous ; after statements

    https://git.kernel.org/netdev/net-next/c/e8fc78eb658a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html