diff options
| author | Wander Lairson Costa <wander@redhat.com> | 2026-03-09 16:46:15 -0300 |
|---|---|---|
| committer | Tomas Glozar <tglozar@redhat.com> | 2026-03-10 10:32:37 +0100 |
| commit | b8f7f49a23897fc772373da513a1cb6d51e5958e (patch) | |
| tree | 7f0e25716787f71f8e7ed33393367bb86836740f /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 009a8e681fb003f38dd57a640e11ed826740b5c1 (diff) | |
rtla: Use strdup() to simplify code
The actions_add_trace_output() and actions_add_shell() functions were
using calloc() followed by strcpy() to allocate and copy a string.
This can be simplified by using strdup(), which allocates memory and
copies the string in a single step.
Replace the calloc() and strcpy() calls with strdup(), making the
code more concise and readable.
Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260309195040.1019085-3-wander@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
