mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
staging, spectra: Remove unnecessary casts of void ptr returning alloc function return values
Hi, The [vk][cmz]alloc(_node) family of functions return void pointers which it's completely unnecessary/pointless to cast to other pointer types since that happens implicitly. This patch removes such casts from drivers/staging/spectra/ Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5ef3df5b9f
commit
0a1c62dedc
1 changed files with 2 additions and 4 deletions
|
@ -180,10 +180,8 @@ u16 emu_Flash_Init(void)
|
|||
nand_dbg_print(NAND_DBG_TRACE, "%s, Line %d, Function: %s\n",
|
||||
__FILE__, __LINE__, __func__);
|
||||
|
||||
flash_memory[0] = (u8 *)vmalloc(GLOB_LLD_PAGE_SIZE *
|
||||
GLOB_LLD_BLOCKS *
|
||||
GLOB_LLD_PAGES *
|
||||
sizeof(u8));
|
||||
flash_memory[0] = vmalloc(GLOB_LLD_PAGE_SIZE * GLOB_LLD_BLOCKS *
|
||||
GLOB_LLD_PAGES * sizeof(u8));
|
||||
if (!flash_memory[0]) {
|
||||
printk(KERN_ERR "Fail to allocate memory "
|
||||
"for nand emulator!\n");
|
||||
|
|
Loading…
Reference in a new issue