]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: Cypress WestBridge OMAP3430 Kernel Hal: Remove unneeded local variables...
authorJesper Juhl <jj@chaosbits.net>
Sun, 7 Nov 2010 06:37:03 +0000 (07:37 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:38:40 +0000 (16:38 -0800)
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>
drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c

index a6780296888f1114c04e0bde4bbfbdbc2978d77a..ad0c61db9937b26f8bbb3d7e818e538f38a460f7 100644 (file)
@@ -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);
 }
 
 /*