diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-07 12:22:18 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-09 16:32:24 -0800 |
commit | a2ac9d69d69d8df88d4096903f5f76fe2de2345b (patch) | |
tree | fe695c0638c81e2062e99e1a4c1eef517521242b /drivers/staging/rtl8712 | |
parent | 268dfede46e24eef55a2ef7a10a462617936771e (diff) | |
download | linux-3.10-a2ac9d69d69d8df88d4096903f5f76fe2de2345b.tar.gz linux-3.10-a2ac9d69d69d8df88d4096903f5f76fe2de2345b.tar.bz2 linux-3.10-a2ac9d69d69d8df88d4096903f5f76fe2de2345b.zip |
staging: r8712u: Remove unneeded local variable in _malloc in osdep_service.h header
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>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/osdep_service.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h index d1674cd282d..f891a1b0218 100644 --- a/drivers/staging/rtl8712/osdep_service.h +++ b/drivers/staging/rtl8712/osdep_service.h @@ -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) |