mirror of https://github.com/thesofproject/sof.git
rimage: Remove blank lines before/after braces
Blank lines aren't necessary after/before open or closed braces. Signed-off-by: Diana Ungureanu <diana-gabriela.ungureanu@nxp.com>
This commit is contained in:
parent
5032a493e9
commit
a90cee2378
|
@ -99,7 +99,6 @@ static int elf_read_sections(struct image *image, struct module *module)
|
|||
|
||||
/* parse each section */
|
||||
for (i = 0; i < hdr->shnum; i++) {
|
||||
|
||||
/* only write valid sections */
|
||||
if (!(section[i].flags & valid))
|
||||
continue;
|
||||
|
@ -178,7 +177,6 @@ static int elf_read_programs(struct image *image, struct module *module)
|
|||
|
||||
/* check each program */
|
||||
for (i = 0; i < hdr->phnum; i++) {
|
||||
|
||||
if (prg[i].filesz == 0)
|
||||
continue;
|
||||
|
||||
|
@ -354,13 +352,11 @@ static void elf_module_limits(struct image *image, struct module *module)
|
|||
|
||||
/* iterate all sections and get size of segments */
|
||||
for (i = 0; i < module->hdr.shnum; i++) {
|
||||
|
||||
section = &module->section[i];
|
||||
|
||||
/* module bss can sometimes be missed */
|
||||
if (i != module->bss_index && i != module->logs_index &&
|
||||
i != module->fw_ready_index) {
|
||||
|
||||
/* only check valid sections */
|
||||
if (!(section->flags & valid))
|
||||
continue;
|
||||
|
|
|
@ -182,7 +182,6 @@ static int simple_write_module(struct image *image, struct module *module)
|
|||
fprintf(stdout, "\tNo\tAddress\t\tSize\t\tFile\t\tType\n");
|
||||
|
||||
for (i = 0; i < module->hdr.shnum; i++) {
|
||||
|
||||
section = &module->section[i];
|
||||
|
||||
/* only write valid sections */
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
/* manifest template */
|
||||
struct fw_image_manifest_v1_8 apl_manifest = {
|
||||
|
||||
.cse_partition_dir_header = {
|
||||
.header_marker = CSE_HEADER_MAKER,
|
||||
.nb_entries = MAN_CSE_PARTS,
|
||||
|
@ -86,7 +85,6 @@ struct fw_image_manifest_v1_8 apl_manifest = {
|
|||
},
|
||||
|
||||
.partition_info = {
|
||||
|
||||
.ext_type = PART_INFO_EXT_TYPE,
|
||||
.ext_len = sizeof(struct partition_info_ext),
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
/* manifest template */
|
||||
struct fw_image_manifest_v1_8 cnl_manifest = {
|
||||
|
||||
.cse_partition_dir_header = {
|
||||
.header_marker = CSE_HEADER_MAKER,
|
||||
.nb_entries = MAN_CSE_PARTS,
|
||||
|
@ -85,7 +84,6 @@ struct fw_image_manifest_v1_8 cnl_manifest = {
|
|||
},
|
||||
|
||||
.partition_info = {
|
||||
|
||||
.ext_type = PART_INFO_EXT_TYPE,
|
||||
.ext_len = sizeof(struct partition_info_ext),
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
/* manifest template */
|
||||
struct fw_image_manifest_v1_5_sue sue_manifest = {
|
||||
|
||||
.desc = {
|
||||
.header = {
|
||||
.header_id = SOF_MAN_FW_HDR_ID,
|
||||
|
|
|
@ -145,7 +145,6 @@ static uint32_t elf_to_file_offset(struct image *image,
|
|||
/* rodata segment, append to text segment */
|
||||
file_offset = elf_addr - module->data_start +
|
||||
module->foffset + module->text_fixup_size;
|
||||
|
||||
}
|
||||
} else if (section->type == SHT_NOBITS) {
|
||||
/* bss segment */
|
||||
|
@ -330,13 +329,11 @@ static int man_module_validate(struct sof_man_module *man_module)
|
|||
int i, j;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
|
||||
istart = man_module->segment[i].v_base_addr;
|
||||
iend = istart + man_module->segment[i].flags.r.length *
|
||||
MAN_PAGE_SIZE;
|
||||
|
||||
for (j = 0; j < 3; j++) {
|
||||
|
||||
/* don't validate segment against itself */
|
||||
if (i == j)
|
||||
continue;
|
||||
|
@ -451,7 +448,6 @@ static int man_module_create(struct image *image, struct module *module,
|
|||
|
||||
/* find all sections and copy to corresponding segments */
|
||||
for (i = 0; i < module->hdr.shnum; i++) {
|
||||
|
||||
section = &module->section[i];
|
||||
|
||||
/* only check valid sections */
|
||||
|
|
Loading…
Reference in New Issue