Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: Cypress WestBridge OMAP3430 Kernel Hal: Remove unneeded local variables from alloc functions

In
drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
the local variables 'ret_p' are not needed and should just go away.

I have no way to test this code, but I believe the change is obviously
correct. Please consider it.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jesper Juhl and committed by
Greg Kroah-Hartman
3c9d4652 6f710907

+2 -8
+2 -8
drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
··· 2127 2127 */ 2128 2128 void *cy_as_hal_alloc(uint32_t cnt) 2129 2129 { 2130 - void *ret_p; 2131 - 2132 - ret_p = kmalloc(cnt, GFP_ATOMIC); 2133 - return ret_p; 2130 + return kmalloc(cnt, GFP_ATOMIC); 2134 2131 } 2135 2132 2136 2133 /* ··· 2147 2150 */ 2148 2151 void *cy_as_hal_c_b_alloc(uint32_t cnt) 2149 2152 { 2150 - void *ret_p; 2151 - 2152 - ret_p = kmalloc(cnt, GFP_ATOMIC); 2153 - return ret_p; 2153 + return kmalloc(cnt, GFP_ATOMIC); 2154 2154 } 2155 2155 2156 2156 /*