diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-08 18:10:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-09 19:45:12 -0500 |
commit | 0a1c62dedc6e28a1117b00c4ccb4427bc91b9f29 (patch) | |
tree | f30e863713e5c342457f289940616b3b057865d1 | |
parent | 5ef3df5b9fed56e64e8544e36a175354d38d0206 (diff) |
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>
-rw-r--r-- | drivers/staging/spectra/lld_emu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/spectra/lld_emu.c b/drivers/staging/spectra/lld_emu.c index 6733bbf8016d..095f2f0c2e5b 100644 --- a/drivers/staging/spectra/lld_emu.c +++ b/drivers/staging/spectra/lld_emu.c | |||
@@ -180,10 +180,8 @@ u16 emu_Flash_Init(void) | |||
180 | nand_dbg_print(NAND_DBG_TRACE, "%s, Line %d, Function: %s\n", | 180 | nand_dbg_print(NAND_DBG_TRACE, "%s, Line %d, Function: %s\n", |
181 | __FILE__, __LINE__, __func__); | 181 | __FILE__, __LINE__, __func__); |
182 | 182 | ||
183 | flash_memory[0] = (u8 *)vmalloc(GLOB_LLD_PAGE_SIZE * | 183 | flash_memory[0] = vmalloc(GLOB_LLD_PAGE_SIZE * GLOB_LLD_BLOCKS * |
184 | GLOB_LLD_BLOCKS * | 184 | GLOB_LLD_PAGES * sizeof(u8)); |
185 | GLOB_LLD_PAGES * | ||
186 | sizeof(u8)); | ||
187 | if (!flash_memory[0]) { | 185 | if (!flash_memory[0]) { |
188 | printk(KERN_ERR "Fail to allocate memory " | 186 | printk(KERN_ERR "Fail to allocate memory " |
189 | "for nand emulator!\n"); | 187 | "for nand emulator!\n"); |