Skip to contentSkip to conversation

selftests: bpf: remove unneeded semicolon

PATCH Applied Yang Li 2 participants 2 messages Feb 8, 2021 – Feb 9, 2021

Subsystems (5)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 selftests: bpf: remove unneeded semicolon

Eliminate the following coccicheck warning:
./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded semicolon

---
 tools/testing/selftests/bpf/test_flow_dissector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/test_flow_dissector.c +1 -1
index 01f0c63..571cc07 100644
@@ -503,7 +503,7 @@ static int do_rx(int fd)
 		if (rbuf != cfg_payload_char)
 			error(1, 0, "recv: payload mismatch");
 		num++;
-	};
+	}
 
 	return num;
 }
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 8 lines · Yang Li

Eliminate the following coccicheck warning:
./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded semicolon

---

Applied to bpf-next, changing subject to have more canonical "selftests/bpf: " prefix. Thanks.

Quoted 19 lines
 tools/testing/selftests/bpf/test_flow_dissector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/test_flow_dissector.c +1 -2
index 01f0c63..571cc07 100644
@@ -503,7 +503,7 @@ static int do_rx(int fd)
                if (rbuf != cfg_payload_char)
                        error(1, 0, "recv: payload mismatch");
                num++;
-       };
+       }
 
        return num;
 }
--

1.8.3.1