[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4cd6ee5a.Fh7BksBGPYS8NR7m%Larry.Finger@lwfinger.net>
Date: Sun, 07 Nov 2010 12:22:18 -0600
From: Larry Finger <Larry.Finger@...inger.net>
To: Greg Kroah-Hartman <gregkh@...e.de>
Cc: florian.c.schilhabel@...glemail.com, jj@...osbits.net,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] staging: r8712u: Remove unneeded local variable in
_malloc in osdep_service.h header
From: Jesper Juhl <jj@...osbits.net>
The variable 'pbuf' is not needed.
Signed-off-by: Jesper Juhl <jj@...osbits.net>
Signed-off-by: Larry Finger <Larry.Finger@...inger.net>
---
Greg,
I have cleaned up the commit message in the patch from Jesper and
resubmitted it.
Larry
---
drivers/staging/rtl8712/osdep_service.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h
index d1674cd..f891a1b 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)
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists