Skip to content

Commit

Permalink
Staging: Cypress WestBridge OMAP3430 Kernel Hal: Remove unneeded loca…
Browse files Browse the repository at this point in the history
…l 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>
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent 6f71090 commit 3c9d465
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 *ret_p;

ret_p = kmalloc(cnt, GFP_ATOMIC);
return ret_p;
return kmalloc(cnt, GFP_ATOMIC);
}

/*
Expand All @@ -2150,10 +2147,7 @@ void cy_as_hal_free(void *mem_p)
*/
void *cy_as_hal_c_b_alloc(uint32_t cnt)
{
void *ret_p;

ret_p = kmalloc(cnt, GFP_ATOMIC);
return ret_p;
return kmalloc(cnt, GFP_ATOMIC);
}

/*
Expand Down

0 comments on commit 3c9d465

Please sign in to comment.