Commit 92d02930 authored by Ramos Falcon, Ernesto's avatar Ramos Falcon, Ernesto Committed by Omar Ramirez Luna

staging: tidspbridge: remove code referred by OPT_ZERO_COPY_LOADER

Remove code referred by OPT_ZERO_COPY_LOADER since it is
not used.
Signed-off-by: default avatarErnesto Ramos <ernesto@ti.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.ramirez@ti.com>
parent 157bc26d
...@@ -1131,9 +1131,6 @@ static void dload_data(struct dload_state *dlthis) ...@@ -1131,9 +1131,6 @@ static void dload_data(struct dload_state *dlthis)
u16 curr_sect; u16 curr_sect;
struct doff_scnhdr_t *sptr = dlthis->sect_hdrs; struct doff_scnhdr_t *sptr = dlthis->sect_hdrs;
struct ldr_section_info *lptr = dlthis->ldr_sections; struct ldr_section_info *lptr = dlthis->ldr_sections;
#ifdef OPT_ZERO_COPY_LOADER
bool zero_copy = false;
#endif
u8 *dest; u8 *dest;
struct { struct {
...@@ -1192,17 +1189,6 @@ static void dload_data(struct dload_state *dlthis) ...@@ -1192,17 +1189,6 @@ static void dload_data(struct dload_state *dlthis)
return; return;
} }
dest = ibuf.bufr; dest = ibuf.bufr;
#ifdef OPT_ZERO_COPY_LOADER
zero_copy = false;
if (!dload_check_type(sptr, DLOAD_CINIT) {
dlthis->myio->writemem(dlthis->myio,
&dest,
lptr->load_addr +
image_offset,
lptr, 0);
zero_copy = (dest != ibuf.bufr);
}
#endif
/* End of determination */ /* End of determination */
if (dlthis->strm->read_buffer(dlthis->strm, if (dlthis->strm->read_buffer(dlthis->strm,
...@@ -1266,9 +1252,6 @@ static void dload_data(struct dload_state *dlthis) ...@@ -1266,9 +1252,6 @@ static void dload_data(struct dload_state *dlthis)
&ibuf.ipacket); &ibuf.ipacket);
cinit_processed = true; cinit_processed = true;
} else { } else {
#ifdef OPT_ZERO_COPY_LOADER
if (!zero_copy) {
#endif
/* FIXME */ /* FIXME */
if (!dlthis->myio-> if (!dlthis->myio->
writemem(dlthis-> writemem(dlthis->
...@@ -1290,9 +1273,6 @@ static void dload_data(struct dload_state *dlthis) ...@@ -1290,9 +1273,6 @@ static void dload_data(struct dload_state *dlthis)
load_addr + load_addr +
image_offset); image_offset);
} }
#ifdef OPT_ZERO_COPY_LOADER
}
#endif
} }
} }
image_offset += image_offset +=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment