lkml.org 
[lkml]   [2010]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rtl8712: remove unneeded local variable in _malloc in osdep_service.h header
On Sun, 7 Nov 2010, Jesper Juhl wrote:

> Hi,
>
> The local variable 'ret' in

Arrgh, mixed up two mails I was composing, the above should of course have
read "The local variable 'pbuf' in"

> drivers/staging/rtl8712/osdep_service.h::_malloc() is completely unneeded,
> so let's remove it.
>
> Signed-off-by: Jesper Juhl <jj@chaosbits.net>
> ---
> diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h
> osdep_service.h | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> index d1674cd..a6e3f19 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)
>
>
>

--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Plain text mails only, please http://www.expita.com/nomime.html
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html



\
 
 \ /
  Last update: 2010-11-07 07:37    [W:0.026 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site