aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/westbridge/astoria
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2010-11-07 07:37:03 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-09 16:38:40 -0800
commit3c9d46526db88218a311a72971efae1b4366d4c6 (patch)
treee1f35059f8d42f577b211138ac1a1c1b9bd885ef /drivers/staging/westbridge/astoria
parentStaging: wlan-ng: fixed coding style issues in p80211netdev.c (diff)
downloadlinux-dev-3c9d46526db88218a311a72971efae1b4366d4c6.tar.xz
linux-dev-3c9d46526db88218a311a72971efae1b4366d4c6.zip
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>
Diffstat (limited to 'drivers/staging/westbridge/astoria')
-rw-r--r--drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c b/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
index a6780296888f..ad0c61db9937 100644
--- a/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
+++ b/drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
@@ -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);
}
/*
@@ -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);
}
/*