diff mbox series

selftests: bpf: remove unneeded semicolon

Message ID 1612780213-84583-1-git-send-email-yang.lee@linux.alibaba.com
State Accepted
Commit 11da9f0c6d145e482991d29a771ce717d2f1b92b
Headers show
Series selftests: bpf: remove unneeded semicolon | expand

Commit Message

Yang Li Feb. 8, 2021, 10:30 a.m. UTC
Eliminate the following coccicheck warning:
./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded
semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 tools/testing/selftests/bpf/test_flow_dissector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrii Nakryiko Feb. 9, 2021, 2:05 a.m. UTC | #1
On Mon, Feb 8, 2021 at 2:30 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
>

> Eliminate the following coccicheck warning:

> ./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded

> semicolon

>

> Reported-by: Abaci Robot <abaci@linux.alibaba.com>

> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>

> ---


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

>  tools/testing/selftests/bpf/test_flow_dissector.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/tools/testing/selftests/bpf/test_flow_dissector.c b/tools/testing/selftests/bpf/test_flow_dissector.c

> index 01f0c63..571cc07 100644

> --- a/tools/testing/selftests/bpf/test_flow_dissector.c

> +++ b/tools/testing/selftests/bpf/test_flow_dissector.c

> @@ -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

>
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/test_flow_dissector.c b/tools/testing/selftests/bpf/test_flow_dissector.c
index 01f0c63..571cc07 100644
--- a/tools/testing/selftests/bpf/test_flow_dissector.c
+++ b/tools/testing/selftests/bpf/test_flow_dissector.c
@@ -503,7 +503,7 @@  static int do_rx(int fd)
 		if (rbuf != cfg_payload_char)
 			error(1, 0, "recv: payload mismatch");
 		num++;
-	};
+	}
 
 	return num;
 }