Skip to content

Commit

Permalink
update(bpf): initialize variable to make clang-15 happy
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it>
Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com>
  • Loading branch information
hbrueckner and Andreagit97 committed Feb 6, 2023
1 parent 1c75bb2 commit 9b25675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/bpf/filler_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data,
* we send an empty param `len=0`.
*/
volatile u16 read_size = dpi_lookahead_size;
int rc;
int rc = 0;

rc = __bpf_read_val_into(data, curoff_bounded, val, read_size, mem);
if (rc)
Expand All @@ -949,7 +949,7 @@ static __always_inline int __bpf_val_to_ring(struct filler_data *data,
if(!data->curarg_already_on_frame)
{
volatile u16 read_size = len;
int rc;
int rc = 0;

curoff_bounded = data->state->tail_ctx.curoff & SCRATCH_SIZE_HALF;
if (data->state->tail_ctx.curoff > SCRATCH_SIZE_HALF)
Expand Down

0 comments on commit 9b25675

Please sign in to comment.