Commit 3c9d4652 authored by Jesper Juhl's avatar Jesper Juhl Committed by Greg Kroah-Hartman

Staging: Cypress WestBridge OMAP3430 Kernel Hal: Remove unneeded local...

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: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarDavid Cross <david.cross@cypress.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6f710907
...@@ -2127,10 +2127,7 @@ void cy_as_hal_pll_lock_loss_handler(cy_as_hal_device_tag tag) ...@@ -2127,10 +2127,7 @@ void cy_as_hal_pll_lock_loss_handler(cy_as_hal_device_tag tag)
*/ */
void *cy_as_hal_alloc(uint32_t cnt) void *cy_as_hal_alloc(uint32_t cnt)
{ {
void *ret_p; return kmalloc(cnt, GFP_ATOMIC);
ret_p = kmalloc(cnt, GFP_ATOMIC);
return ret_p;
} }
/* /*
...@@ -2150,10 +2147,7 @@ void cy_as_hal_free(void *mem_p) ...@@ -2150,10 +2147,7 @@ void cy_as_hal_free(void *mem_p)
*/ */
void *cy_as_hal_c_b_alloc(uint32_t cnt) void *cy_as_hal_c_b_alloc(uint32_t cnt)
{ {
void *ret_p; return kmalloc(cnt, GFP_ATOMIC);
ret_p = kmalloc(cnt, GFP_ATOMIC);
return ret_p;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment