* [PATCH] samples/bpf: Fix trailing semicolon
@ 2018-01-16 14:15 Luis de Bethencourt
2018-01-16 23:25 ` Daniel Borkmann
0 siblings, 1 reply; 2+ messages in thread
From: Luis de Bethencourt @ 2018-01-16 14:15 UTC (permalink / raw)
To: linux-kernel
Cc: Joe Perches, Alexei Starovoitov, Daniel Borkmann, netdev,
Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation.
Removing it since it doesn't do anything.
Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
---
Hi,
After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches
suggested I fix it treewide [0].
Best regards
Luis
[0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
[1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html
samples/bpf/xdp_monitor_kern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/bpf/xdp_monitor_kern.c b/samples/bpf/xdp_monitor_kern.c
index 2fe2f761a0d0..c969141bfa8b 100644
--- a/samples/bpf/xdp_monitor_kern.c
+++ b/samples/bpf/xdp_monitor_kern.c
@@ -104,7 +104,7 @@ struct xdp_exception_ctx {
SEC("tracepoint/xdp/xdp_exception")
int trace_xdp_exception(struct xdp_exception_ctx *ctx)
{
- u64 *cnt;;
+ u64 *cnt;
u32 key;
key = ctx->act;
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] samples/bpf: Fix trailing semicolon
2018-01-16 14:15 [PATCH] samples/bpf: Fix trailing semicolon Luis de Bethencourt
@ 2018-01-16 23:25 ` Daniel Borkmann
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2018-01-16 23:25 UTC (permalink / raw)
To: Luis de Bethencourt, linux-kernel; +Cc: Joe Perches, Alexei Starovoitov, netdev
On 01/16/2018 03:15 PM, Luis de Bethencourt wrote:
> The trailing semicolon is an empty statement that does no operation.
> Removing it since it doesn't do anything.
>
> Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
Applied to bpf-next, thanks Luis!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-16 23:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 14:15 [PATCH] samples/bpf: Fix trailing semicolon Luis de Bethencourt
2018-01-16 23:25 ` Daniel Borkmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.