OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268dfed
)
staging: r8712u: Remove unneeded local variable in _malloc in osdep_service.h header
author
Jesper Juhl
<jj@chaosbits.net>
Sun, 7 Nov 2010 18:22:18 +0000
(12:22 -0600)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/osdep_service.h
b/drivers/staging/rtl8712/osdep_service.h
index
d1674cd
..
f891a1b
100644
(file)
--- 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)