提交 a2ac9d69 编写于 作者: J Jesper Juhl 提交者: Greg Kroah-Hartman

staging: r8712u: Remove unneeded local variable in _malloc in osdep_service.h header

The variable 'pbuf' is not needed.
Signed-off-by: NJesper Juhl <jj@chaosbits.net>
Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 268dfede
...@@ -196,10 +196,7 @@ static inline void sleep_schedulable(int ms) ...@@ -196,10 +196,7 @@ static inline void sleep_schedulable(int ms)
static inline u8 *_malloc(u32 sz) static inline u8 *_malloc(u32 sz)
{ {
u8 *pbuf; return kmalloc(sz, GFP_ATOMIC);
pbuf = kmalloc(sz, GFP_ATOMIC);
return pbuf;
} }
static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer) static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册