Skip to content

Commit

Permalink
staging: r8712u: Remove unneeded local variable in _malloc in osdep_s…
Browse files Browse the repository at this point in the history
…ervice.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>
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent 268dfed commit a2ac9d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/rtl8712/osdep_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2ac9d6

Please sign in to comment.