summaryrefslogtreecommitdiff
path: root/drivers/staging/tidspbridge/dynload/cload.c
diff options
context:
space:
mode:
authorArmando Uribe <x0095078@ti.com>2010-07-22 20:25:32 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-26 15:32:20 -0700
commit803cd75eff2d560d622da69569f0bf66a3ea4ed1 (patch)
treeaf7daa05aa38dda6b8eebb65cf5b531dd08ec8b6 /drivers/staging/tidspbridge/dynload/cload.c
parentfe15ea8b86f19bf7c4d1a4ea7452f1bb04b8933a (diff)
downloadlinux-3.10-803cd75eff2d560d622da69569f0bf66a3ea4ed1.tar.gz
linux-3.10-803cd75eff2d560d622da69569f0bf66a3ea4ed1.tar.bz2
linux-3.10-803cd75eff2d560d622da69569f0bf66a3ea4ed1.zip
staging: tidspbridge: Remove macros used as cast
This patch removes those macros that are used to perform casts Signed-off-by: Armando Uribe <x0095078@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/dynload/cload.c')
-rw-r--r--drivers/staging/tidspbridge/dynload/cload.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/staging/tidspbridge/dynload/cload.c b/drivers/staging/tidspbridge/dynload/cload.c
index 32150f0c5e5..c85a5e88361 100644
--- a/drivers/staging/tidspbridge/dynload/cload.c
+++ b/drivers/staging/tidspbridge/dynload/cload.c
@@ -20,13 +20,6 @@
#define LINKER_MODULES_HEADER ("_" MODULES_HEADER)
/*
- * we use the fact that DOFF section records are shaped just like
- * ldr_section_info to reduce our section storage usage. This macro marks
- * the places where that assumption is made
- */
-#define DOFFSEC_IS_LDRSEC(pdoffsec) ((struct ldr_section_info *)(pdoffsec))
-
-/*
* forward references
*/
static void dload_symbols(struct dload_state *dlthis);
@@ -519,17 +512,17 @@ static void allocate_sections(struct dload_state *dlthis)
#if BITS_PER_AU <= BITS_PER_BYTE
/* attempt to insert the name of this section */
if (soffset < dlthis->dfile_hdr.df_strtab_size)
- DOFFSEC_IS_LDRSEC(shp)->name = dlthis->str_head +
- soffset;
+ ((struct ldr_section_info *)shp)->name =
+ dlthis->str_head + soffset;
else {
dload_error(dlthis, "Bad name offset in section %d",
curr_sect);
- DOFFSEC_IS_LDRSEC(shp)->name = NULL;
+ ((struct ldr_section_info *)shp)->name = NULL;
}
#endif
/* allocate target storage for sections that require it */
if (ds_needs_allocation(shp)) {
- *asecs = *DOFFSEC_IS_LDRSEC(shp);
+ *asecs = *(struct ldr_section_info *)shp;
asecs->context = 0; /* zero the context field */
#if BITS_PER_AU > BITS_PER_BYTE
asecs->name = unpack_name(dlthis, soffset);
@@ -1162,7 +1155,7 @@ static void dload_data(struct dload_state *dlthis)
if (curr_sect < dlthis->allocated_secn_count)
dlthis->delta_runaddr = sptr->ds_paddr;
else {
- lptr = DOFFSEC_IS_LDRSEC(sptr);
+ lptr = (struct ldr_section_info *)sptr;
dlthis->delta_runaddr = 0;
}
dlthis->image_secn = lptr;
@@ -1337,7 +1330,7 @@ static void dload_data(struct dload_state *dlthis)
goto loop_cont;
if (curr_sect >= dlthis->allocated_secn_count)
- lptr = DOFFSEC_IS_LDRSEC(sptr);
+ lptr = (struct ldr_section_info *)sptr;
if (cinit_processed) {
/*Don't clear BSS after load-time initialization */