]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: r8712u: Remove unneeded local variable in _malloc in osdep_service.h header
authorJesper Juhl <jj@chaosbits.net>
Sun, 7 Nov 2010 18:22:18 +0000 (12:22 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:32:24 +0000 (16:32 -0800)
The variable 'pbuf' is not needed.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/osdep_service.h

index d1674cd282dcd7deb370cca6b75c8f0f69b3ed73..f891a1b0218060dead728e67f0ac2bdd096e3fa9 100644 (file)
@@ -196,10 +196,7 @@ static inline void sleep_schedulable(int ms)
 
 static inline u8 *_malloc(u32 sz)
 {
-       u8 *pbuf;
-
-       pbuf =  kmalloc(sz, GFP_ATOMIC);
-       return pbuf;
+       return  kmalloc(sz, GFP_ATOMIC);
 }
 
 static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)