[Patch 02/16] Remove unnecessary kmalloc casts from the mips arch.

From: jack
Date: Tue Jul 31 2007 - 09:15:48 EST


Signed-off-by: Jack Stone <jack@xxxxxxxxxxxxxxxxxxxxxxx>

CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx>

---
arch/mips/au1000/common/dbdma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: b/arch/mips/au1000/common/dbdma.c
===================================================================
--- a/arch/mips/au1000/common/dbdma.c
+++ b/arch/mips/au1000/common/dbdma.c
@@ -396,7 +396,7 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
* and if we try that first we are likely to not waste larger
* slabs of memory.
*/
- desc_base = (u32)kmalloc(entries * sizeof(au1x_ddma_desc_t),
+ desc_base = kmalloc(entries * sizeof(au1x_ddma_desc_t),
GFP_KERNEL|GFP_DMA);
if (desc_base == 0)
return 0;
@@ -408,7 +408,7 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
kfree((const void *)desc_base);
i = entries * sizeof(au1x_ddma_desc_t);
i += (sizeof(au1x_ddma_desc_t) - 1);
- if ((desc_base = (u32)kmalloc(i, GFP_KERNEL|GFP_DMA)) == 0)
+ if ((desc_base = kmalloc(i, GFP_KERNEL|GFP_DMA)) == 0)
return 0;

desc_base = ALIGN_ADDR(desc_base, sizeof(au1x_ddma_desc_t));

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/