Skip to content

Commit

Permalink
The formatter makes this look like crap, so add needless braces
Browse files Browse the repository at this point in the history
  • Loading branch information
haesbaert committed Jul 2, 2024
1 parent c8cfe75 commit 2550cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion non-GPL/Events/Lib/EbpfEvents.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,9 @@ int ebpf_event_ctx__read_stats(struct ebpf_event_ctx *ctx, struct ebpf_event_sta
if (!ctx || !ees)
return -1;
if (bpf_map__lookup_elem(ctx->probe->maps.ringbuf_stats, &zero, sizeof(zero), pcpu_ees,
sizeof(pcpu_ees), 0) != 0)
sizeof(pcpu_ees), 0) != 0) {
return -1;
}

memset(ees, 0, sizeof(*ees));
for (i = 0; i < libbpf_num_possible_cpus(); i++) {
Expand Down

0 comments on commit 2550cdd

Please sign in to comment.