mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-12 11:39:06 +08:00
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
This commit is contained in:
committed by
Andrii Nakryiko
parent
c975797ebe
commit
7b18ff1212
@@ -1724,7 +1724,8 @@ err_out:
|
|||||||
memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len);
|
memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len);
|
||||||
|
|
||||||
/* and now restore original strings section size; types data size
|
/* and now restore original strings section size; types data size
|
||||||
* wasn't modified, so doesn't need restoring, see big comment above */
|
* wasn't modified, so doesn't need restoring, see big comment above
|
||||||
|
*/
|
||||||
btf->hdr->str_len = old_strs_len;
|
btf->hdr->str_len = old_strs_len;
|
||||||
|
|
||||||
hashmap__free(p.str_off_map);
|
hashmap__free(p.str_off_map);
|
||||||
|
|||||||
Reference in New Issue
Block a user