Skip to content

Commit 21143df

Browse files
authored
libbpf-tools/ksnoop: Remove useless and white lines (#5365)
Remove useless and white lines in libbpf-tools/ksnoop. Signed-off-by: Rong Tao <[email protected]>
1 parent a9c6650 commit 21143df

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libbpf-tools/ksnoop.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,6 @@ static char *type_id_to_str(struct btf *btf, __s32 type_id, char *str)
424424
name = btf__str_by_offset(btf, type->name_off);
425425
break;
426426
case BTF_KIND_TYPEDEF:
427-
name = btf__str_by_offset(btf, type->name_off);
428-
break;
429427
default:
430428
name = btf__str_by_offset(btf, type->name_off);
431429
break;
@@ -440,7 +438,6 @@ static char *type_id_to_str(struct btf *btf, __s32 type_id, char *str)
440438

441439
static char *value_to_str(struct btf *btf, struct value *val, char *str)
442440
{
443-
444441
str = type_id_to_str(btf, val->type_id, str);
445442
if (val->flags & KSNOOP_F_PTR)
446443
strncat(str, "*", MAX_STR);

0 commit comments

Comments
 (0)