]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Remove useless casts of kmalloc return values.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 21 Oct 2005 21:26:07 +0000 (22:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:32:50 +0000 (19:32 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/dbdma.c
arch/mips/kernel/irixelf.c

index a5a6709637e02a2fb99b8b2ef7365949b787b69f..d00e8247d6c2ea7bbe67f765b1f19282bef51806 100644 (file)
@@ -290,8 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
                                /* If kmalloc fails, it is caught below same
                                 * as a channel not available.
                                 */
-                               ctp = (chan_tab_t *)
-                                       kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
+                               ctp = kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
                                chan_tab_ptr[i] = ctp;
                                break;
                        }
index 5aeacc1ffb244c7c5abc773314b4315e7363408c..99262fe64560ad3612a5dd0261709727cb4c491c 100644 (file)
@@ -422,9 +422,7 @@ static inline int look_for_irix_interpreter(char **name,
                if (*name != NULL)
                        goto out;
 
-               *name = (char *) kmalloc((epp->p_filesz +
-                                         strlen(IRIX_EMUL)),
-                                        GFP_KERNEL);
+               *name = kmalloc(epp->p_filesz + strlen(IRIX_EMUL), GFP_KERNEL);
                if (!*name)
                        return -ENOMEM;