mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
Remove useless casts of kmalloc return values.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e5adb8770e
commit
030274ae03
2 changed files with 2 additions and 5 deletions
|
@ -290,8 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
|
||||||
/* If kmalloc fails, it is caught below same
|
/* If kmalloc fails, it is caught below same
|
||||||
* as a channel not available.
|
* as a channel not available.
|
||||||
*/
|
*/
|
||||||
ctp = (chan_tab_t *)
|
ctp = kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
|
||||||
kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
|
|
||||||
chan_tab_ptr[i] = ctp;
|
chan_tab_ptr[i] = ctp;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -422,9 +422,7 @@ static inline int look_for_irix_interpreter(char **name,
|
||||||
if (*name != NULL)
|
if (*name != NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
*name = (char *) kmalloc((epp->p_filesz +
|
*name = kmalloc(epp->p_filesz + strlen(IRIX_EMUL), GFP_KERNEL);
|
||||||
strlen(IRIX_EMUL)),
|
|
||||||
GFP_KERNEL);
|
|
||||||
if (!*name)
|
if (!*name)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue