aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-bfin.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-10-21 00:26:17 +0000
committerAlan Modra <amodra@gmail.com>2008-10-21 00:26:17 +0000
commit78aff5a5271ab14960fec98805bd1c295cab6d8d (patch)
tree43f6e4e4a3f01abe61b8bfad5fdada2d6de8050d /gas/config/tc-bfin.c
parent1631ca86c3bde3a7b7089ade915f9aeea47b6034 (diff)
downloadgdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.zip
gdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.gz
gdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.bz2
Remove unnecessary casts on obstack_alloc invocations.
Diffstat (limited to 'gas/config/tc-bfin.c')
-rw-r--r--gas/config/tc-bfin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index 6628900..c3b8aef 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -960,7 +960,7 @@ note_reloc2 (INSTR_T code, const char *symbol, int reloc, int value, int pcrel)
INSTR_T
gencode (unsigned long x)
{
- INSTR_T cell = (INSTR_T) obstack_alloc (&mempool, sizeof (struct bfin_insn));
+ INSTR_T cell = obstack_alloc (&mempool, sizeof (struct bfin_insn));
memset (cell, 0, sizeof (struct bfin_insn));
cell->value = (x);
return cell;
@@ -973,7 +973,7 @@ int count_insns;
static void *
allocate (int n)
{
- return (void *) obstack_alloc (&mempool, n);
+ return obstack_alloc (&mempool, n);
}
Expr_Node *