Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jesper Juhl and committed by
Greg Kroah-Hartman
a2ac9d69 268dfede

+1 -4
+1 -4
drivers/staging/rtl8712/osdep_service.h
··· 196 196 197 197 static inline u8 *_malloc(u32 sz) 198 198 { 199 - u8 *pbuf; 200 - 201 - pbuf = kmalloc(sz, GFP_ATOMIC); 202 - return pbuf; 199 + return kmalloc(sz, GFP_ATOMIC); 203 200 } 204 201 205 202 static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)