Skip to content

Commit

Permalink
Remove duplicate length check
Browse files Browse the repository at this point in the history
Signed-off-by: grantseltzer <[email protected]>
  • Loading branch information
grantseltzer committed Dec 18, 2024
1 parent d635dfb commit 0eb45ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/dynamicinstrumentation/codegen/c/expressions.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,6 @@ static __always_inline int read_str_to_output(struct expression_context context,
if (err != 0) {
log_debug("error reading string: %ld", err);
}
if (length > limit) {
length = limit;
}
*context.output_offset += length;
log_debug("Read %u bytes (limit = %hu)", length, limit);

Expand Down

0 comments on commit 0eb45ce

Please sign in to comment.