Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libbpf: checkpatch: Fixed code alignments in btf.c

Fixed some checkpatch issues in btf.c

Signed-off-by: Kang Minchul <tegongkang@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20221113190648.38556-2-tegongkang@gmail.com

authored by

Kang Minchul and committed by
Andrii Nakryiko
c7694ac3 e662c775

+3 -2
+3 -2
tools/lib/bpf/btf.c
··· 1724 1724 memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len); 1725 1725 1726 1726 /* and now restore original strings section size; types data size 1727 - * wasn't modified, so doesn't need restoring, see big comment above */ 1727 + * wasn't modified, so doesn't need restoring, see big comment above 1728 + */ 1728 1729 btf->hdr->str_len = old_strs_len; 1729 1730 1730 1731 hashmap__free(p.str_off_map); ··· 2330 2329 */ 2331 2330 int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id) 2332 2331 { 2333 - if (!value|| !value[0]) 2332 + if (!value || !value[0]) 2334 2333 return libbpf_err(-EINVAL); 2335 2334 2336 2335 return btf_add_ref_kind(btf, BTF_KIND_TYPE_TAG, value, ref_type_id);